mirror of https://github.com/BOINC/boinc.git
admin web: fix bug in login function
This commit is contained in:
parent
79906a8f1a
commit
cf5a7d3770
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// This file is part of BOINC.
|
// This file is part of BOINC.
|
||||||
// http://boinc.berkeley.edu
|
// http://boinc.berkeley.edu
|
||||||
// Copyright (C) 2008 University of California
|
// Copyright (C) 2014 University of California
|
||||||
//
|
//
|
||||||
// BOINC is free software; you can redistribute it and/or modify it
|
// BOINC is free software; you can redistribute it and/or modify it
|
||||||
// under the terms of the GNU Lesser General Public License
|
// under the terms of the GNU Lesser General Public License
|
||||||
|
@ -29,7 +29,7 @@ $email_addr = strtolower(post_str("email_addr", true));
|
||||||
$passwd = stripslashes(post_str("passwd", true));
|
$passwd = stripslashes(post_str("passwd", true));
|
||||||
|
|
||||||
if ($email_addr && $passwd) {
|
if ($email_addr && $passwd) {
|
||||||
$user = lookup_user_email_addr($email_addr);
|
$user = BoincUser::lookup_email_addr($email_addr);
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
error_page("No account found with email address $email_addr");
|
error_page("No account found with email address $email_addr");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue