Configure LoginToboggan: allow login via email, and display login on 403 pages.
This commit is contained in:
parent
f618c22a12
commit
3cbdc0b76b
19
farm.profile
19
farm.profile
|
@ -24,6 +24,13 @@ function farm_install_tasks($install_state) {
|
|||
'run' => INSTALL_TASK_RUN_IF_NOT_COMPLETED,
|
||||
'function' => 'farm_configure_front',
|
||||
);
|
||||
$tasks['farm_configure_logintoboggan'] = array(
|
||||
'display_name' => st('Farm: configure logintoboggan'),
|
||||
'display' => FALSE,
|
||||
'type' => 'normal',
|
||||
'run' => INSTALL_TASK_RUN_IF_NOT_COMPLETED,
|
||||
'function' => 'farm_configure_logintoboggan',
|
||||
);
|
||||
return $tasks;
|
||||
}
|
||||
|
||||
|
@ -59,3 +66,15 @@ function farm_configure_front() {
|
|||
// Set the front page to the farm dashboard provided by the farm_admin module.
|
||||
variable_set('site_frontpage', 'farm');
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the logintoboggan module.
|
||||
*/
|
||||
function farm_configure_logintoboggan() {
|
||||
|
||||
// Allow login via email.
|
||||
variable_set('logintoboggan_login_with_email', TRUE);
|
||||
|
||||
// Display the login form on access denied pages.
|
||||
variable_set('site_403', 'toboggan/denied');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue