Repository navigation
Set login form to use WTForms #321
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?
Changes from 1 commit
464687d
5abe6cd
a2c6a93
1fb834a
b2e4a42
5715c51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,7 +107,7 @@ def login(login_message: Optional[str] = None): | |
| login_message = request.args.get('login_message') | ||
| if not form.validate_on_submit(): | ||
| return render_template( | ||
| 'login.html', form=form, login_message=login_message | ||
| 'login.html', form=form, login_message=login_message, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we keep the login message from the last page request or generate new one? (I might have missed something in the logic here)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think I changed anything meaningful here. Me missing something in the logic here would be more probable :P
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Try to create a form validator instead of the |
||
| ) | ||
|
|
||
| username = form.username.data | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.