Skip to content

Commit

Permalink
Update password.py
Browse files Browse the repository at this point in the history
  • Loading branch information
canuse committed Jun 11, 2019
1 parent 2e1059b commit 575e5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rateMyCourse/views/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def reset_password(request) -> HttpResponse:
c = qs[0]
if c.question == question and c.answer == answer:
c.user.password = npassword
c.save()
c.user.save()
else:
return HttpResponse(formatException(-9, '密保问题答案不匹配'), content_type="application/json")

Expand Down

0 comments on commit 575e5ba

Please sign in to comment.