3.0
π Documentation changes
2b2dcb3π Updated docs94a2a84π Updated docs37ce682π Updated docs- Now using doctum with a modified version of the Flarum docs theme
- π Updated .gitignore
7b7cbb8 π PHPDoc fix
π Bug Fixes
6c262d8π½ Nickname attribute instead of display name
π Updates
443658dπ₯ Removed the getForumLink- URL is accessible via the url property
3f31ea6β¨ Updated userupdatemethod- β¨ Added check if id is set. If not set, it will be fetched automatically.
- β¨ Response is now saved and passed as argument to the after_update method hook.
- β¨ The method now returns a bool. True if the user has been updated (the response correctly reports the user id); false if the user can't be fetched (if the user id doesn't exists) or the response id is different from user id
7b14a69π π₯ Renamed thefetchUsermethod to simplyfetche9c1c9eπ Moved and Renamed the Basic trait to the Auth trait in the Maicol07\SSO\User\Traits namespace80d1f7eMinor improvementsc1e71ebaddons: π Renamed master property to flarum (consistency)e886c59example: Updated example204e0a2examples: β¨ Added users list on the delete page
β¨ Features
d173cb1β¨ Addons can now specify what addons are required to be loaded before itc0dc540β¨ Allow to change the remember property via theisSessionRememberedmethodf152d95β¨ π₯ New user() method- Replaces the current user object creation
- User property is now private. You can only access to the user via this method
- Improved examples
99c0594π₯ β¨ π Moved Addons and Cookies features to traits- Removed class cookie. Now all the necessary cookies are generated on the fly.
- Addons initialization in the constructor is moved to the initAddons() method in the Addons trait.
- Login: now the logout cookie is deleted (if it exists), the session token or remember token is created
- Logout: now the session token and remember token cookies are deleted (if they exist), a new logout cookie (flarum_logout) is created.
- New methods:
- setRememberCookie
- deleteRememberCookie
- setSessionTokenCookie
- deleteSessionTokenCookie
- setLogoutCookie
- deleteLogoutCookie
- generateCookie
- Renamed methods:
- addAddon is now loadAddon
- removeAddon is now unloadAddon
- Removed methods:
- setCookie
613b5b5β¨ Added Remember me checkbox to example + some visual improvements5865c51β¨ Changedlifetimetoremember- Lifetime is deprecated in beta16.
Remember should be set to true when you want to login the user with a "Remember me" option. edd34ebβ¨ Initial attempt to beta16 compatibility- BREAKING CHANGE: π₯ Replaced the
lifetimesetting withremember - BREAKING CHANGE: π₯ Removed the
getLifeTimeSecondsmethod - BREAKING CHANGE: π₯ PHP 7.3 required
- WARNING! illuminate/support pinned to ^8 (removed support for Laravel 6 & 7)
β» Code Refactoring
7f5f752β»οΈ π Moved delete and update methods out of the basic traite3c00deβ»οΈ Refactor doctum.config.phpa72432dβ»οΈ Refactor doctum.config.php6331b3cβ»οΈ General refactor
Rename
768152aaddons: πsetAddonAttributesrenamed tosetAddonProperties
π¨ Code styling
1b6448bπ Minor example styling improvement