AdvancedUserInterface

AdvancedUserInterface

interface AdvancedUserInterface implements UserInterface

Adds extra features to a user class related to account status flags.

This interface can be implemented in place of UserInterface if you'd like the authentication system to consider different account status flags during authentication. If any of the methods in this interface return false, authentication will fail.

If you need to perform custom logic for any of these situations, then you will need to register an exception listener and watch for the specific exception instances thrown in each case. All exceptions are a subclass of AccountStatusException

Methods

(Role|string)[] getRoles()

Re