mirror of https://github.com/BOINC/boinc.git
Allow projects to define their own overrides for the login forms - this helps enable CMS systems like Drupal to handle the logins for BOINC
svn path=/trunk/boinc/; revision=16127
This commit is contained in:
parent
3cb57a1306
commit
932eabba94
|
@ -367,6 +367,7 @@ function check_tokens($auth) {
|
|||
);
|
||||
}
|
||||
|
||||
if (!function_exists("print_login_form_aux")){
|
||||
function print_login_form_aux($next_url, $user) {
|
||||
echo "
|
||||
<form name=\"f\" method=\"post\" action=\"login_action.php\">
|
||||
|
@ -398,13 +399,16 @@ function print_login_form_aux($next_url, $user) {
|
|||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists("print_login_form")){
|
||||
function print_login_form() {
|
||||
page_head("Please log in");
|
||||
$next_url = $_SERVER['REQUEST_URI'];
|
||||
print_login_form_aux($next_url, null);
|
||||
page_tail();
|
||||
}
|
||||
}
|
||||
|
||||
function no_computing() {
|
||||
return parse_bool(get_config(), "no_computing");
|
||||
|
|
Loading…
Reference in New Issue