Browse Source

Merge remote-tracking branch 'origin/standalone_develop' into standalone_develop

pull/347/head
xxq250 2 years ago
parent
commit
835f2db759
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/accounts_controller.rb

+ 1
- 0
app/controllers/accounts_controller.rb View File

@@ -222,6 +222,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.id.to_i === 104691
return render_error("未找到相关用户!") if @user.blank?


Loading…
Cancel
Save