forked from waifung0207/ci_bootstrap
-
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.
Added features of Forgot Password / Reset Password
- Loading branch information
1 parent
9f5cc01
commit d4c4699
Showing
10 changed files
with
179 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* Helper class to generate HTML elements | ||
*/ | ||
|
||
function btn($label, $url = '', $icon = '', $style = 'primary', $size = '') | ||
{ | ||
$size = empty($size) ? '' : 'btn-'.$size; | ||
$url = empty($url) ? '' : site_url($url); | ||
$icon = empty($icon) ? '' : "<i class='fa fa-$icon'></i>"; | ||
|
||
if ( empty($url) ) | ||
return "<button class='btn btn-$style $size'>$icon $label</button>"; | ||
else | ||
return "<a class='btn btn-$style $size' href='$url'>$icon $label</a>"; | ||
} |
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,18 @@ | ||
|
||
<div class="well bs-component col-md-6"> | ||
|
||
<?php echo alert_box(); ?> | ||
|
||
<?php echo form_open(); ?> | ||
|
||
<?php echo form_group_password('password', 'New Password'); ?> | ||
|
||
<?php echo form_group_password('retype_password'); ?> | ||
|
||
<hr/> | ||
|
||
<?php echo form_submit('Confirm'); ?> | ||
|
||
<?php echo 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php $this->load->view('email/_header'); ?> | ||
|
||
<p>Hi <?php echo $first_name; ?>,</p> | ||
|
||
<p>Please visit <a href="<?php echo site_url('account/login'); ?>">this link</a> and login your account.</p> | ||
|
||
<?php $this->load->view('email/_footer'); ?> |
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,7 @@ | ||
<?php $this->load->view('email/_header'); ?> | ||
|
||
<p>Hi <?php echo $first_name; ?>,</p> | ||
|
||
<p>Please visit <a href="<?php echo site_url('account/reset_password/'.$forgot_password_code); ?>">this link</a> to reset your account password.</p> | ||
|
||
<?php $this->load->view('email/_footer'); ?> |
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