From 154106c0c3b8fdd64f739fc449203b842924df0c Mon Sep 17 00:00:00 2001 From: Alex Gessner Date: Wed, 10 Apr 2019 12:05:11 -0400 Subject: compare usernames case-insensitively on new proof creation flow (#10544) * compare usernames case-insensitively on new proof creation flow * Fix code style issue --- app/controllers/settings/identity_proofs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/settings/identity_proofs_controller.rb') diff --git a/app/controllers/settings/identity_proofs_controller.rb b/app/controllers/settings/identity_proofs_controller.rb index 8f857fdcc..e22b4d9be 100644 --- a/app/controllers/settings/identity_proofs_controller.rb +++ b/app/controllers/settings/identity_proofs_controller.rb @@ -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) -- cgit