This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
forked from rainlab/user-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.2.0: Users can now deactivate their own accounts.
- Loading branch information
Showing
15 changed files
with
285 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<a | ||
href="javascript:;" | ||
onclick="$('#accountDeactivateForm').toggle()"> | ||
Deactivate account | ||
</a> | ||
|
||
<div id="accountDeactivateForm" style="display: none"> | ||
{{ form_ajax('onDeactivate') }} | ||
<hr /> | ||
<h3>Deactivate your account?</h3> | ||
<p> | ||
Your account will be disabled and your details remove from the site. | ||
You can reactivate your account any time by signing back in. | ||
</p> | ||
<div class="form-group"> | ||
<label for="accountDeletePassword">To continue, please enter your password:</label> | ||
<input name="password" type="password" class="form-control" id="accountDeletePassword" /> | ||
</div> | ||
<button type="submit" class="btn btn-danger"> | ||
Confirm Deactivate Account | ||
</button> | ||
<a | ||
href="javascript:;" | ||
onclick="$('#accountDeactivateForm').toggle()"> | ||
I changed my mind | ||
</a> | ||
{{ form_close() }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,6 @@ <h3>Register</h3> | |
|
||
{% partial __SELF__ ~ '::update' %} | ||
|
||
{% partial __SELF__ ~ '::deactivate_link' %} | ||
|
||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="layout-row min-size"> | ||
<div class="callout callout-warning"> | ||
<div class="header"> | ||
<i class="icon-warning"></i> | ||
<h3><?= e(trans('rainlab.user::lang.users.activate_warning_title')) ?></h3> | ||
<p><?= e(trans('rainlab.user::lang.users.activate_warning_desc')) ?></p> | ||
</div> | ||
<div class="content"> | ||
<div class="loading-indicator-container"> | ||
<button | ||
type="button" | ||
class="btn btn-warning" | ||
data-request="onActivate" | ||
data-load-indicator="<?= e(trans('rainlab.user::lang.users.activating')) ?>" | ||
data-request-confirm="<?= e(trans('rainlab.user::lang.users.activate_confirm')) ?>"> | ||
<?= e(trans('rainlab.user::lang.users.active_manually')) ?> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="layout-row min-size"> | ||
<div class="callout callout-danger"> | ||
<div class="header"> | ||
<i class="icon-minus-circle"></i> | ||
<h3><?= e(trans('rainlab.user::lang.users.trashed_hint_title')) ?></h3> | ||
<p><?= e(trans('rainlab.user::lang.users.trashed_hint_desc')) ?></p> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.