mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 05:22:38 +00:00
Account-delete, clarify what happens to v1 account and projects
This commit is contained in:
parent
b6241fec9a
commit
680654f7e7
2 changed files with 22 additions and 3 deletions
|
@ -190,8 +190,13 @@ block content
|
||||||
h3 #{translate("delete_account")}
|
h3 #{translate("delete_account")}
|
||||||
div.modal-body#delete-account-modal
|
div.modal-body#delete-account-modal
|
||||||
p !{translate("delete_account_warning_message_3")}
|
p !{translate("delete_account_warning_message_3")}
|
||||||
p
|
if settings.createV1AccountOnLogin && settings.overleaf
|
||||||
strong This will also delete your account on Overleaf v1!
|
p
|
||||||
|
strong
|
||||||
|
| This will also delete your user account on #[a(href=settings.overleaf.host target="_blank") Overleaf v1].
|
||||||
|
| If you want to remove your projects from Overleaf v1, you must do this before you
|
||||||
|
| delete your account by going to your My Projects page in Overleaf v1, moving your
|
||||||
|
| projects to the Trash, and then from there either ‘leaving’ or ‘purging’ them, as appropriate.
|
||||||
form(novalidate, name="deleteAccountForm")
|
form(novalidate, name="deleteAccountForm")
|
||||||
label #{translate('email')}
|
label #{translate('email')}
|
||||||
input.form-control(
|
input.form-control(
|
||||||
|
@ -210,12 +215,25 @@ block content
|
||||||
ng-model="state.password",
|
ng-model="state.password",
|
||||||
ng-keyup="checkValidation()"
|
ng-keyup="checkValidation()"
|
||||||
)
|
)
|
||||||
|
input(
|
||||||
|
type="checkbox"
|
||||||
|
ng-model="state.confirmV1Purge"
|
||||||
|
ng-change="checkValidation()"
|
||||||
|
)
|
||||||
|
label I have left or purged my projects on Overleaf v1 (if any)
|
||||||
div(ng-if="state.error")
|
div(ng-if="state.error")
|
||||||
div.alert.alert-danger
|
div.alert.alert-danger
|
||||||
| #{translate('generic_something_went_wrong')}
|
| #{translate('generic_something_went_wrong')}
|
||||||
div(ng-if="state.invalidCredentials")
|
div(ng-if="state.invalidCredentials")
|
||||||
div.alert.alert-danger
|
div.alert.alert-danger
|
||||||
| #{translate('email_or_password_wrong_try_again')}
|
| #{translate('email_or_password_wrong_try_again')}
|
||||||
|
if settings.createV1AccountOnLogin && settings.overleaf
|
||||||
|
div(ng-if="state.error || state.invalidCredentials")
|
||||||
|
div.alert.alert-info
|
||||||
|
| If you can't remember your password, or if you are using Single-Sign-On with another provider
|
||||||
|
| to sign in (such as Twitter or Google), please
|
||||||
|
| #[a(href=settings.overleaf.host+'/users/password/new', target='_blank') reset your password],
|
||||||
|
| and try again.
|
||||||
.modal-footer
|
.modal-footer
|
||||||
button.btn.btn-default(
|
button.btn.btn-default(
|
||||||
ng-click="cancel()"
|
ng-click="cancel()"
|
||||||
|
|
|
@ -42,6 +42,7 @@ define [
|
||||||
isValid : false
|
isValid : false
|
||||||
deleteText: ""
|
deleteText: ""
|
||||||
password: ""
|
password: ""
|
||||||
|
confirmV1Purge: false
|
||||||
inflight: false
|
inflight: false
|
||||||
error: false
|
error: false
|
||||||
invalidCredentials: false
|
invalidCredentials: false
|
||||||
|
@ -52,7 +53,7 @@ define [
|
||||||
, 700
|
, 700
|
||||||
|
|
||||||
$scope.checkValidation = ->
|
$scope.checkValidation = ->
|
||||||
$scope.state.isValid = userDefaultEmail? and $scope.state.deleteText == userDefaultEmail and $scope.state.password.length > 0
|
$scope.state.isValid = userDefaultEmail? and $scope.state.deleteText == userDefaultEmail and $scope.state.password.length > 0 and $scope.state.confirmV1Purge
|
||||||
|
|
||||||
$scope.delete = () ->
|
$scope.delete = () ->
|
||||||
$scope.state.inflight = true
|
$scope.state.inflight = true
|
||||||
|
|
Loading…
Reference in a new issue