]> Kevux Git Server - koopa/commitdiff
Update: handle 'password authentication failed for user' postgresql error as an acces...
authorKevin Day <thekevinday@gmail.com>
Sat, 3 Feb 2018 22:12:36 +0000 (16:12 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 3 Feb 2018 22:12:36 +0000 (16:12 -0600)
common/standard/paths/u/user_login.php

index 6c9e19f5eaca90a5079a63104b8503a1bc35eca2..1d85dc1c4a8bcbbe6afd894494b85a1dae952c5f 100644 (file)
@@ -522,6 +522,9 @@ class c_standard_path_user_login extends c_standard_path {
         else if (preg_match('/Peer authentication failed for user/i', $error_message) > 0) {
           $problems[] = c_base_form_problem::s_create_error(NULL, 'Unable to login, access is denied.');
         }
+        else if (preg_match('/password authentication failed for user/i', $error_message) > 0) {
+          $problems[] = c_base_form_problem::s_create_error(NULL, 'Unable to login, access is denied.');
+        }
         else {
           // here the reason for failure is unknown.
           $problems[] = c_base_form_problem::s_create_error(NULL, 'Unable to login.');