about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorAlex Gessner <alex.gessner@gmail.com>2019-04-10 12:05:11 -0400
committerEugen Rochko <eugen@zeonfederated.com>2019-04-10 18:05:11 +0200
commit154106c0c3b8fdd64f739fc449203b842924df0c (patch)
tree38d9e05a6dc9f8368371b2c41efc1910ba2ef654 /app/controllers
parent9e2a1f18380ffb0184513882d8d46c50f17d1312 (diff)
compare usernames case-insensitively on new proof creation flow (#10544)
* compare usernames case-insensitively on new proof creation flow

* Fix code style issue
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/settings/identity_proofs_controller.rb2
1 files changed, 1 insertions, 1 deletions
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)