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
ece1c643
Commit
ece1c643
authored
Nov 16, 2006
by
Richard Mansfield
Browse files
Use sitename in forgotpassword email
parent
1ab0a149
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/forgotpass.php
View file @
ece1c643
...
@@ -129,7 +129,7 @@ function forgotpass_submit($values) {
...
@@ -129,7 +129,7 @@ function forgotpass_submit($values) {
$pwrequest
->
expiry
=
db_format_timestamp
(
time
()
+
86400
);
$pwrequest
->
expiry
=
db_format_timestamp
(
time
()
+
86400
);
$pwrequest
->
key
=
get_random_key
();
$pwrequest
->
key
=
get_random_key
();
email_user
(
$user
,
null
,
email_user
(
$user
,
null
,
get_string
(
'forgotpassemailsubject'
),
get_string
(
'forgotpassemailsubject'
,
'mahara'
,
get_config
(
'sitename'
)
),
get_string
(
'forgotpassemailmessagetext'
,
'mahara'
,
$pwrequest
->
key
,
$pwrequest
->
key
),
get_string
(
'forgotpassemailmessagetext'
,
'mahara'
,
$pwrequest
->
key
,
$pwrequest
->
key
),
get_string
(
'forgotpassemailmessagehtml'
,
'mahara'
,
$pwrequest
->
key
,
$pwrequest
->
key
,
$pwrequest
->
key
,
$pwrequest
->
key
));
get_string
(
'forgotpassemailmessagehtml'
,
'mahara'
,
$pwrequest
->
key
,
$pwrequest
->
key
,
$pwrequest
->
key
,
$pwrequest
->
key
));
insert_record
(
'usr_password_request'
,
$pwrequest
);
insert_record
(
'usr_password_request'
,
$pwrequest
);
...
...
htdocs/lang/en.utf8/mahara.php
View file @
ece1c643
...
@@ -74,7 +74,7 @@ $string['registrationnosuchkey'] = 'Sorry, there does not seem to be a registrat
...
@@ -74,7 +74,7 @@ $string['registrationnosuchkey'] = 'Sorry, there does not seem to be a registrat
// Forgot password
// Forgot password
$string
[
'pwchangerequestsent'
]
=
'You should receive an e-mail shortly with a link you can use to change the password for your account'
;
$string
[
'pwchangerequestsent'
]
=
'You should receive an e-mail shortly with a link you can use to change the password for your account'
;
$string
[
'forgotpassemailsubject'
]
=
'Change password request for
Mahara
'
;
$string
[
'forgotpassemailsubject'
]
=
'Change password request for
%s
'
;
$string
[
'forgotpassemailmessagetext'
]
=
'Dear $fullname,
$string
[
'forgotpassemailmessagetext'
]
=
'Dear $fullname,
A request to reset your password has been received for your $sitename account.
A request to reset your password has been received for your $sitename account.
...
...
Write
Preview
Supports
Markdown
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