|
|
@@ -631,7 +631,7 @@ class User {
|
|
|
if (!self::logged()) throw new Exception("Użytkownik niezalogwany");
|
|
|
|
|
|
try {
|
|
|
- if (!($user = self::loginByDB())) return false;
|
|
|
+ if (!($user = self::loginByDB(self::getLogin(), $oldPass))) return false;
|
|
|
} catch (Exception $e) {
|
|
|
throw new Exception("Błędne hasło");
|
|
|
}
|