Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
84f2c5fc
Commit
84f2c5fc
authored
Dec 24, 2007
by
Richard Mansfield
Browse files
Change strings on forgot password form when resetting password
parent
4af02f69
Changes
2
Show whitespace changes
Inline
Side-by-side
htdocs/forgotpass.php
View file @
84f2c5fc
...
...
@@ -32,7 +32,6 @@ define('SECTION_PAGE', 'forgotpass');
require
(
'init.php'
);
require_once
(
'pieforms/pieform.php'
);
define
(
'TITLE'
,
get_string
(
'forgotpassword'
));
if
(
!
session_id
())
{
session_start
();
...
...
@@ -44,6 +43,8 @@ if (!empty($_SESSION['pwchangerequested'])) {
}
if
(
isset
(
$_GET
[
'key'
]))
{
define
(
'TITLE'
,
get_string
(
'changepassword'
));
if
(
!
$pwrequest
=
get_record
(
'usr_password_request'
,
'key'
,
$_GET
[
'key'
]))
{
die_info
(
get_string
(
'nosuchpasswordrequest'
));
}
...
...
@@ -83,6 +84,8 @@ if (isset($_GET['key'])) {
$smarty
->
assign
(
'forgotpasschange_form'
,
pieform
(
$form
));
$smarty
->
display
(
'forgotpass.tpl'
);
exit
;
}
else
{
define
(
'TITLE'
,
get_string
(
'forgotpassword'
));
}
$form
=
array
(
...
...
htdocs/theme/default/templates/forgotpass.tpl
View file @
84f2c5fc
...
...
@@ -2,15 +2,17 @@
{
include
file
=
"columnfullstart.tpl"
}
{
if
$forgotpass_form
}
<h2>
{
str
tag
=
'forgotpassword'
}
</h2>
{
if
$forgotpass_form
}
<p>
{
str
tag
=
"forgotpasswordtext"
}
</p>
{
$forgotpass_form
}
{/
if
}
{
if
$forgotpasschange_form
}
<h2>
{
str
tag
=
'changepassword'
}
</h2>
<p>
{
str
tag
=
"forgotpasswordenternew"
}
</p>
{
$forgotpasschange_form
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment