Fix various typos

This commit is contained in:
luzpaz
2023-08-06 17:31:42 -04:00
committed by Sam
parent b04e32a19d
commit 1a937edd11
5 changed files with 6 additions and 6 deletions

View File

@ -508,7 +508,7 @@ def update_user(auth_user: User, user_name: str) -> Union[Dict, HttpResponse]:
:statuscode 400:
- ``invalid payload``
- ``valid email must be provided``
- ``new email must be different than curent email``
- ``new email must be different than current email``
:statuscode 401:
- ``provide a valid auth token``
- ``signature expired, please log in again``

View File

@ -49,7 +49,7 @@ class UserManagerService:
raise InvalidEmailException('valid email must be provided')
if user.email == new_email:
raise InvalidEmailException(
'new email must be different than curent email'
'new email must be different than current email'
)
if with_confirmation:
user.email_to_confirm = new_email