Merge branch 'develop' into hh_develop

This commit is contained in:
vilet.yy 2021-04-02 18:41:37 +08:00
commit 7a00541375
2 changed files with 3 additions and 2 deletions

View File

@ -234,7 +234,7 @@ class UsersController < ApplicationController
end
def sync_user_info
user = User.find_by_mail params[:email]
user = User.find_by_login params[:login]
return render_forbidden unless user === current_user
sync_params = {

View File

@ -1,8 +1,9 @@
class Users::UpdateInfoForm
include ActiveModel::Model
attr_accessor :email, :password
attr_accessor :email, :password, :login
validates :email, presence: true, format: { with: CustomRegexp::EMAIL }
validates :password, presence: true
validates :login, presence: true
end