This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
新增:更改密码须验证两次密码
pull/347/head
yystopf
2 years ago
parent
852d430178
commit
062e654d45
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/controllers/accounts_controller.rb
+ 1
- 0
app/controllers/accounts_controller.rb
View File
@@ -214,6 +214,7 @@ class AccountsController < ApplicationController
end
def change_password
return render_error("两次输入的密码不正确") if params[:password].to_s != params[:new_password_repeat].to_s
@user = User.find_by(login: params[:login])
return render_error("未找到相关用户!") if @user.blank?
return render_error("旧密码不正确") unless @user.check_password?(params[:old_password])
Write
Preview
Loading…
Cancel
Save