Merge pull request #1335 from sharelatex/spd-account-delete-email

Make email check on account deletion modal case-insensitive

GitOrigin-RevId: 3dd80e9390e069b5c2f30632e61dc8c4bc39d9ad
This commit is contained in:
Simon Detheridge 2019-01-11 14:15:57 +00:00 committed by sharelatex
parent 7807435c2d
commit 97d6f81d7c

View file

@ -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)