* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
if ((isPostRequestElementSet('send_link')) && (isPostRequestElementSet('email'))) {
// Output result
displayMessage(sendAdminPasswordResetLink(postRequestElement('email')));
- } elseif (isGetRequestElementSet('hash')) {
- // Output form for hash validation
- loadTemplate('admin_validate_reset_hash_form', FALSE, getRequestElement('hash'));
- } elseif ((isPostRequestElementSet('validate_hash')) && (isPostRequestElementSet('admin_login')) && (isPostRequestElementSet('hash'))) {
+ } elseif ((isPostRequestElementSet('validate_hash')) && (isPostRequestElementSet('admin_login')) && (isGetRequestElementSet('hash'))) {
// Validate the login data and hash
- $valid = adminResetValidateHashLogin(postRequestElement('hash'), postRequestElement('admin_login'));
+ $valid = adminResetValidateHashLogin(getRequestElement('hash'), postRequestElement('admin_login'));
// Valid?
if ($valid === TRUE) {
// Prepare content first
$content = array(
- 'hash' => postRequestElement('hash'),
+ 'hash' => getRequestElement('hash'),
'admin_login' => postRequestElement('admin_login')
);
// Validation failed
displayMessage('{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED2--}');
}
+ } elseif (isGetRequestElementSet('hash')) {
+ // Output form for hash validation
+ loadTemplate('admin_validate_reset_hash_form', FALSE, getRequestElement('hash'));
} else {
// Output reset password form
loadTemplate('admin_reset_password_send_link');