From 97d6f81d7cffc0ddc82ab1862c6ca88d74ad79a8 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Fri, 11 Jan 2019 14:15:57 +0000 Subject: [PATCH] Merge pull request #1335 from sharelatex/spd-account-delete-email Make email check on account deletion modal case-insensitive GitOrigin-RevId: 3dd80e9390e069b5c2f30632e61dc8c4bc39d9ad --- services/web/public/src/main/account-settings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/src/main/account-settings.js b/services/web/public/src/main/account-settings.js index e882cb7088..db898f2b17 100644 --- a/services/web/public/src/main/account-settings.js +++ b/services/web/public/src/main/account-settings.js @@ -97,7 +97,8 @@ define(['base'], function(App) { $scope.checkValidation = () => ($scope.state.isValid = userDefaultEmail != null && - $scope.state.deleteText === userDefaultEmail && + $scope.state.deleteText.toLowerCase() === + userDefaultEmail.toLowerCase() && $scope.state.password.length > 0 && $scope.state.confirmV1Purge && $scope.state.confirmSharelatexDelete)