Optimised Company() Setup() Config() and changed method_directory into URL
This commit is contained in:
@@ -58,8 +58,8 @@ class Controller_Login extends lnApp_Controller_Login {
|
||||
$et->to = array('account'=>array($mmto->account_id));
|
||||
$et->variables = array(
|
||||
'SITE'=>URL::base(TRUE,TRUE),
|
||||
'SITE_ADMIN'=>Config::sitename(),
|
||||
'SITE_NAME'=>Config::sitename(),
|
||||
'SITE_ADMIN'=>Company::instance()->admin(),
|
||||
'SITE_NAME'=>Company::instance()->name(),
|
||||
'TOKEN'=>$mmto->token,
|
||||
'TOKEN_EXPIRE_MIN'=>$token_expire,
|
||||
'USER_NAME'=>sprintf('%s %s',$mmto->account->first_name,$mmto->account->last_name),
|
||||
@@ -72,7 +72,7 @@ class Controller_Login extends lnApp_Controller_Login {
|
||||
|
||||
// Redirect to our password reset, the Auth will validate the token.
|
||||
} elseif (! empty($_REQUEST['token'])) {
|
||||
HTTP::redirect(sprintf('user/account/resetpassword?token=%s',$_REQUEST['token']));
|
||||
HTTP::redirect(URL::link('user','account/resetpassword?token=%s'.$_REQUEST['token']));
|
||||
}
|
||||
|
||||
// Show our token screen even if the email was invalid.
|
||||
|
Reference in New Issue
Block a user