mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 04:11:27 +02:00
Improve error message
This commit is contained in:
@@ -145,8 +145,8 @@ class Adminer {
|
||||
* @return mixed true for success, string for error message, false for unknown error
|
||||
*/
|
||||
function login($login, $password) {
|
||||
if ($password == "") { //! password is optional in Elastic and Mongo
|
||||
return lang('<a href="https://www.adminer.org/en/extension/"%s>Implement</a> %s method to use password-less database.', target_blank(), '<code>login()</code>');
|
||||
if ($password == "") {
|
||||
return lang('Adminer does not support accessing a database without a password, <a href="https://www.adminer.org/en/password/"%s>more information</a>.', target_blank());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user