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
修改密码的参数错误
tags/v1
sylor_huang@126.com
6 years ago
parent
1a63dbd6eb
commit
ce9148bb5c
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
app/controllers/accounts_controller.rb
+ 2
- 2
app/controllers/accounts_controller.rb
View File
@@ -98,11 +98,11 @@ class AccountsController < ApplicationController
#修改密码
def remote_password
@user = User.find_by(login: params[:login])
if @user && @user.update_attribute(:password, params[:
new_
password])
if @user && @user.update_attribute(:password, params[:password])
render_ok({})
else
render_error("更新
是不
")
render_error("更新
失败
")
end
end
Write
Preview
Loading…
Cancel
Save