Skip to content

Commit 8efc31f

Browse files
committed
Bugfix: Show danger flash message (instead of info) if registration is not allowed
1 parent b63e672 commit 8efc31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LoginWithAuthorizationProviderAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
326326
else {
327327
//Check if registration is allowed
328328
if (Site::getPreference('USE_REGISTRATION_MODULE') !== '1') {
329-
FlashMessages::addMessage(I18N::translate('Requesting a new webtrees user account is currently not allowed.'));
329+
FlashMessages::addMessage(I18N::translate('Requesting a new webtrees user account is currently not allowed.'), 'danger');
330330
throw new HttpNotFoundException();
331331
}
332332

0 commit comments

Comments
 (0)