mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-06 16:00:28 +01:00
Improved (imo) the use of English.
This commit is contained in:
parent
20530c000e
commit
701b45c286
@ -873,7 +873,7 @@ def update_pwd():
|
|||||||
config.set("Account", "password", hashlib.sha256(request.form['repnewpass'].encode()).hexdigest())
|
config.set("Account", "password", hashlib.sha256(request.form['repnewpass'].encode()).hexdigest())
|
||||||
try:
|
try:
|
||||||
set_dashboard_conf(config)
|
set_dashboard_conf(config)
|
||||||
session['message'] = "Password update successfully!"
|
session['message'] = "Password updated successfully!"
|
||||||
session['message_status'] = "success"
|
session['message_status'] = "success"
|
||||||
config.clear()
|
config.clear()
|
||||||
return redirect(url_for("settings"))
|
return redirect(url_for("settings"))
|
||||||
@ -888,7 +888,7 @@ def update_pwd():
|
|||||||
config.clear()
|
config.clear()
|
||||||
return redirect(url_for("settings"))
|
return redirect(url_for("settings"))
|
||||||
else:
|
else:
|
||||||
session['message'] = "Your Password does not match."
|
session['message'] = "Your Passwords do not match."
|
||||||
session['message_status'] = "danger"
|
session['message_status'] = "danger"
|
||||||
config.clear()
|
config.clear()
|
||||||
return redirect(url_for("settings"))
|
return redirect(url_for("settings"))
|
||||||
|
Loading…
Reference in New Issue
Block a user