fixed some typos
parent
2a01481440
commit
c77d7b1cff
6
auth.py
6
auth.py
|
@ -28,11 +28,11 @@ def register():
|
|||
elif not password:
|
||||
error = 'Password is required.'
|
||||
elif not mail:
|
||||
error = 'Please enter your email adress'
|
||||
error = 'Please enter your email adress.'
|
||||
elif dbsession.query(User).filter(User.username == username).first() != None:
|
||||
error = "Username already exists, please choose another one"
|
||||
error = "Username already exists, please choose another one."
|
||||
elif dbsession.query(User).filter(User.email == mail).first() != None:
|
||||
error = "This email adress is already in use, please choose another one"
|
||||
error = "This email adress is already in use, please choose another one."
|
||||
|
||||
if error is None:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue