]> git.mxchange.org Git - friendica.git/blobdiff - src/Security/Authentication.php
Added comment for the deactivated part
[friendica.git] / src / Security / Authentication.php
index d1e64534c6bb176aba00d329255d32faf896ec54..42dc02340490b397864a73a74fc97ee97ea4fd36 100644 (file)
@@ -291,8 +291,14 @@ class Authentication
                        $this->dba->update('user', ['openid' => $openid_identity, 'openidserver' => $openid_server], ['uid' => $record['uid']]);
                }
 
-               $this->setForUser($a, $record, true, true);
+               /**
+                * @see User::getPasswordRegExp()
+                */
+               if (PASSWORD_DEFAULT === PASSWORD_BCRYPT && strlen($password) > 72) {
+                       $return_path = '/security/password_too_long?' . http_build_query(['return_path' => $return_path]);
+               }
 
+               $this->setForUser($a, $record, true, true);
 
                $this->baseUrl->redirect($return_path);
        }