Skip to content

Commit

Permalink
Update applications.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tunglambg131003 authored May 25, 2023
1 parent b8cd871 commit 730b22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def boschcoderace_update_user_login(userName,hashedPassword):
return True

def boschcoderace_store_password(username,Password):
hasher = hashlib.new('md5')
hasher = hashlib.new('sha256')
hasher.update(Password)
hashedPassword = hasher.digest()
# UpdateUserLogin returns True on success, False otherwise
Expand Down Expand Up @@ -217,4 +217,4 @@ def do_chpasswd():
password_change(g.session['username'], password) # = libuser.login(username, password)
flash("Password changed")

return render_template('user.chpasswd.html')
return render_template('user.chpasswd.html')

0 comments on commit 730b22d

Please sign in to comment.