Fix login stuff
This commit is contained in:
11
application/views/auth/email/forgot_password.php
Normal file
11
application/views/auth/email/forgot_password.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?=$username?>,
|
||||
|
||||
To reset your password, please go to the following page:
|
||||
|
||||
{unwrap}<?=site_url('auth/reset_password' . $forgotten_password_code);?>{/unwrap}
|
||||
|
||||
Your password will be automatically reset, and a new password will be emailed to you.
|
||||
|
||||
If you do not wish to reset your password, ignore this message. It will expire in 24 hours.
|
||||
|
||||
Thank you!
|
||||
@@ -0,0 +1,8 @@
|
||||
<?=$username?>,
|
||||
|
||||
Here is your new login information:
|
||||
|
||||
Username: <?=$username?>
|
||||
Password: <?=$password?>
|
||||
|
||||
Thank you!
|
||||
57
application/views/auth/forgot_password.php
Normal file
57
application/views/auth/forgot_password.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?=substr($this->config->item('language'), 0, 2);?>">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<title>ScattPort | <?=_('Login');?></title>
|
||||
|
||||
<?=link_tag('assets/css/login.css');?>
|
||||
<?=link_tag('assets/css/form.css');?>
|
||||
|
||||
<?=script_tag('assets/js/minmax.js');?>
|
||||
<?=script_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');?>
|
||||
<?=script_tag('assets/js/scattport.js');?>
|
||||
<script type="text/javascript">
|
||||
var SITE_URL = '<?=site_url()?>';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="box">
|
||||
<h2>Scattport <span class="light"><?=_('Login');?></span></h2>
|
||||
|
||||
<?php
|
||||
if (isset($errors) && is_array($errors)) {
|
||||
foreach ($errors as $e) {
|
||||
echo "<p class=\"error\"><strong>" . _('Error') . ":</strong> " . $e . "</p>";
|
||||
}
|
||||
} else if (isset($messages) && is_array($messages)) {
|
||||
foreach ($messages as $m) {
|
||||
echo "<p class=\"success\"><strong>" . _('Success') . ":</strong> " . $m . "</p>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form name="password" action="<?= site_url('auth/forgot_password') ?>"
|
||||
method="post">
|
||||
<ul>
|
||||
<li>
|
||||
<label><?=form_label(_('Email address'), 'email');?></label>
|
||||
<div>
|
||||
<input type="text" name="email" id="email" class="text max" value="<?=set_value('email');?>" />
|
||||
<?=form_error('email');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<input type="submit" class="button" name="forgot_password" value="<?=_('Submit');?>" />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<p><?=anchor('auth/login', _('Back to login page'));?></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -24,12 +24,15 @@
|
||||
<h2>Scattport <span class="light"><?=_('Login');?></span></h2>
|
||||
|
||||
<?php
|
||||
if (isset($error))
|
||||
foreach ($error as $e)
|
||||
echo "<p class=\"error\">" . $e . "</p>";
|
||||
if (isset($notice))
|
||||
foreach ($notice as $n)
|
||||
echo "<p class=\"notice\">" . $n . "</p>";
|
||||
if (isset($errors)) {
|
||||
foreach ($errors as $e) {
|
||||
echo "<p class=\"error\"><strong>" . _('Error') . ":</strong> " . $e . "</p>";
|
||||
}
|
||||
} else if (isset($messages) && is_array($messages)) {
|
||||
foreach ($messages as $m) {
|
||||
echo "<p class=\"success\"><strong>" . _('Success') . ":</strong> " . $m . "</p>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form action="<?= site_url('auth/login') ?>" method="post" name="loginform">
|
||||
<ul>
|
||||
@@ -47,6 +50,12 @@
|
||||
<?=form_error('password');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<input type="checkbox" name="remember" id="remember" class="radio" value="1"<?=set_checkbox('remember', 1);?> />
|
||||
<label for="remember" class="choice"><?=_('Remember me on this computer')?></label>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<input type="submit" class="button" name="login" value="<?=_('Log in');?>" />
|
||||
|
||||
Reference in New Issue
Block a user