mirror of
https://github.com/vrana/adminer.git
synced 2026-07-06 23:19:43 +02:00
Trim trailing whitespace
This commit is contained in:
@@ -18,17 +18,17 @@ CREATE TABLE login (
|
||||
class AdminerLoginTable {
|
||||
/** @access protected */
|
||||
var $database;
|
||||
|
||||
|
||||
/** Set database of login table
|
||||
* @param string
|
||||
*/
|
||||
function __construct($database) {
|
||||
$this->database = $database;
|
||||
}
|
||||
|
||||
|
||||
function login($login, $password) {
|
||||
$connection = connection();
|
||||
return (bool) $connection->result("SELECT COUNT(*) FROM " . idf_escape($this->database) . ".login WHERE login = " . q($login) . " AND password_sha1 = " . q(sha1($password)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user