compare usernames case-insensitively on new proof creation flow (#10544)
* compare usernames case-insensitively on new proof creation flow * Fix code style issue
This commit is contained in:
parent
9e2a1f1838
commit
154106c0c3
2 changed files with 14 additions and 5 deletions
|
@ -18,7 +18,7 @@ class Settings::IdentityProofsController < Settings::BaseController
|
|||
provider_username: params[:provider_username]
|
||||
)
|
||||
|
||||
if current_account.username == params[:username]
|
||||
if current_account.username.casecmp(params[:username]).zero?
|
||||
render layout: 'auth'
|
||||
else
|
||||
flash[:alert] = I18n.t('identity_proofs.errors.wrong_user', proving: params[:username], current: current_account.username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue