mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Ask user to type their email when deleting account, not "DELETE"
This commit is contained in:
parent
ef1aab1c27
commit
73bb11e4a0
1 changed files with 4 additions and 3 deletions
|
@ -21,7 +21,8 @@ define [
|
|||
$scope.deleteAccount = () ->
|
||||
modalInstance = $modal.open(
|
||||
templateUrl: "deleteAccountModalTemplate"
|
||||
controller: "DeleteAccountModalController"
|
||||
controller: "DeleteAccountModalController",
|
||||
scope: $scope
|
||||
)
|
||||
]
|
||||
|
||||
|
@ -39,7 +40,7 @@ define [
|
|||
, 700
|
||||
|
||||
$scope.checkValidation = ->
|
||||
$scope.state.isValid = $scope.state.deleteText == "DELETE"
|
||||
$scope.state.isValid = $scope.state.deleteText == $scope.email
|
||||
|
||||
$scope.delete = () ->
|
||||
$scope.state.inflight = true
|
||||
|
|
Loading…
Reference in a new issue