-
Notifications
You must be signed in to change notification settings - Fork 12
33 reset user password #171
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: master
Are you sure you want to change the base?
Conversation
…settings to local branch
…ue_in_settings' into 33_reset_user_password
| return row['email'] | ||
| return False | ||
|
|
||
| def get_email_address(email): |
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.
Zduplikowana funkcja
| <form action="/pass_rec" method="POST"> | ||
|
|
||
| <h2>Odzyskiwanie hasła użytkownika</h2> | ||
|
|
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.
Brakuje flashowania z errorem, kiedy podany email jest błędny.
Działa w porządku :) Mam tylko małą uwagę dot. flashowania w komentarzu powyżej.
Też myślę, że warto. |
| f.write(f"http://127.0.0.1:5000/pass_rec/{sha}\n") | ||
| return render_template('base/login.html', error=message) | ||
|
|
||
| error = 'Invalid login or email' |
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.
Proponuję zmienić komunikat na polski
Działają funkcjonalności generowania linku do zmiany hasła oraz sam formularz zmiany zmiany hasła. Nie ma jeszcze wysyłania na maila. Muszę to jeszcze przemyśleć. Możecie się pobawić funkcjonalnością przechodząc ze strony logowania do Odzyskaj Hasło. Następnie w pliku email_test.txt zapisywany jest link. Link powinien być aktywny przez godzinę od wygenerowania, kolejny link można wygenerować po upływie godziny.
Wydaje mi się że warto jeszcze dodać deaktywacje linku bezpośrednio po poprawnej zmianie hasła.