{% throw 401 'Unauthorized' %}
and {% throw 403 'Forbidden' %}
from twig template to show appropriate login pagesHTTP 403
coderoute_after_login
and route_after_login
settings as they have no effect$grav['login']->addPage()
$grav['login']->getRoute()
LoginPlugin::defaultRedirectAfterLogin()
and LoginPlugin::defaultRedirectAfterLogout()
visibility_requires_access
checks by restricting full check to only visible pagesLogin::register()
Login::register()
now validates all the provided built-in user fields, not just usernamefullname
field, it's already handled in the registration formvisibility_requires_access
#228|raw
on content in profile templateSync User in Session
feature #252/
for homepage['rate_limit' => true]
optionUserLoginEvent::AUTHENTICATION_CANCELLED
and triggers onUserLoginFailure
eventonUserLoginAuthorized
event if user is authorizedonUserLoginAuthorized
or onUserLoginFailure
event with AUTHORIZATION_CHALLENGE
stateroute_after_login
and route_after_logout
blueprint.yaml
causing YAML errorsonUserLoginFailure
, use onUserLoginGuest
event insteadredirect_to_login
and redirect_after_logout
are now boolean, with accompanying route_after_login
and route_after_logout
options. NOTE: Compatibility is maintained with existing config.onUserActivated
event #242groups
field not listing available user groupsbin/plugin login new-user
ACL when using Flex Usersru
and uk
translations #208lookup
userslookup
commandFlex User
object$grav['accounts']
instead of $grav['users']
PageInterface
instead of Page
classUser
to UserInterface
$grav['users']
collection instead of deprecated static callsonUserLoginRegisterData
event in object to allow referenceonUserLoginRegisteredUser()
event to allow manipulation of User object after registrationlang-safe
variety for better multi-language support #186user_registration.fields
are allowed in registration and profile formsuser://data/rememberme
instead of storing them into the cacheredirect_after_login
setting #164Login
class validation methods in CLILogin::login()
and Login::logout()
to return UserLoginEvent
instance instead of User
UserLoginEvent
$grav['login']->login()
and $grav['login']->logout()
functions with event hooks$grav['login']->getRateLimiter($context)
functiononUserLoginAuthenticate
, onUserLoginAuthorize
, onUserLoginFailure
, onUserLogin
, onUserLogout
partials/messages.html.twig
and rely on new core versiongroups
and no access
defined #134unauthorized.md
page that can be customized as neededauthenticated
and authorized
appends
for number fieldroute
options in admin options (blueprints)/
if base_url_relative
is empty #102Remember me
checkbox and and Forgot
button (for Offline functionality)redirect_after_login
is definedsite.login
permissionusername
or email
email
addressLoginUtils
and replaced with new EmailUtils
redirect
option has been changed to redirect_after_login
. Make sure you update your configuration file.email
in registration formenable
in adminemail
in registration formenable
in admin