|
|
@ -221,7 +221,9 @@ class ManagementsController < ApplicationController
|
|
|
|
@user.admin = params[:admin].to_i
|
|
|
|
@user.admin = params[:admin].to_i
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@user.firstname = ""
|
|
|
|
@user.firstname = ""
|
|
|
|
@user.mail = params[:mail].strip == "" ? nil : params[:mail]
|
|
|
|
if params[:mail].present?
|
|
|
|
|
|
|
|
@user.mail = params[:mail].strip
|
|
|
|
|
|
|
|
end
|
|
|
|
@user.phone = params[:phone].strip == "" ? nil : params[:phone]
|
|
|
|
@user.phone = params[:phone].strip == "" ? nil : params[:phone]
|
|
|
|
#@user.password = params[:new_password]
|
|
|
|
#@user.password = params[:new_password]
|
|
|
|
# if params[:new_password].strip != "" && params[:new_password_confirmation].strip != ""
|
|
|
|
# if params[:new_password].strip != "" && params[:new_password_confirmation].strip != ""
|
|
|
|