Skip to content

Commit

Permalink
Fix #47 password
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaOvodov committed May 20, 2021
1 parent 9e10bbc commit 72c1a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_app/angelina_reader_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class AngelinaSolver:
##########################################
## работа с пользователями
##########################################
def register_user(self, name, email, password_hash, network_name, network_id):
def register_user(self, name, email, password, network_name, network_id):
"""
Регистрирует юзера с заданными параметрами через email-пароль или через соцсеть.
name, email указываются всегда.
Expand All @@ -216,7 +216,7 @@ def register_user(self, name, email, password_hash, network_name, network_id):
"id": id,
"name": name,
"email": email,
"password_hash": password_hash,
"password_hash": User.hash_password(None, password),
"network_name": network_name,
"network_id": network_id,
"reg_date": datetime.now(),
Expand Down

0 comments on commit 72c1a31

Please sign in to comment.