mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
修改密码的参数错误
This commit is contained in:
@@ -98,11 +98,11 @@ class AccountsController < ApplicationController
|
|||||||
#修改密码
|
#修改密码
|
||||||
def remote_password
|
def remote_password
|
||||||
@user = User.find_by(login: params[:login])
|
@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({})
|
render_ok({})
|
||||||
else
|
else
|
||||||
render_error("更新是不")
|
render_error("更新失败")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user