-
Notifications
You must be signed in to change notification settings - Fork 14
[#H24] Flask app #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[#H24] Flask app #101
Conversation
| return hashlib.md5(data.encode('utf-8')).hexdigest() | ||
|
|
||
|
|
||
| def registrate(account): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
получить имэйл из запроса, получить имейл из storage, сравнить и занести в storage, если не совпадают
Chudopal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо кое-то поправить, будь более внимательным к оформлению
|
|
||
|
No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Убрать лишние строки, в конце файла должна быть только одна пустая строка
| def reg(): | ||
| data = request.get_json() | ||
| registrate(data) | ||
| return make_response(jsonify({"result": 'OK'}), 201) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут добавить в конец файла пустую строку
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
строки...
| @@ -0,0 +1 @@ | |||
| [{"password": "900150983cd24fb0d6963f7d28e17f72", "email": "qwerty@qwerty.com"}, {"password": "3944b025c9ca7eec3154b44666ae04a0", "email": "qwerty1@qwerty.com"}, {"email": "denis@den.com", "password": "c3875d07f44c422f3b3bc019c23e16ae"}, {"email": "denis@den.com", "password": "c3875d07f44c422f3b3bc019c23e16ae"}, {"email": "denis@den.com", "password": "52103037f7230187f89ce58d5334cdb6"}] No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это почистить надо, не нужно на ГХ лить какие-то данные, это сердить только для кода, json-ы всякие тут лучше хранить пустыми, если только в них не конфигурация какая-то(а это не твой случай, так что сделай его пустым)
No description provided.