Skip to content

3.0

Choose a tag to compare

@maicol07 maicol07 released this 09 Apr 14:24
· 68 commits to master since this release

πŸ“ Documentation changes

  • 2b2dcb3 πŸ“ Updated docs
  • 94a2a84 πŸ“ Updated docs
  • 37ce682 πŸ“ 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 user update method
    • ✨ 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 the fetchUser method to simply fetch
  • e9c1c9e 🚚 Moved and Renamed the Basic trait to the Auth trait in the Maicol07\SSO\User\Traits namespace
  • 80d1f7e Minor improvements
  • c1e71eb addons: 🚚 Renamed master property to flarum (consistency)
  • e886c59 example: Updated example
  • 204e0a2 examples: ✨ Added users list on the delete page

✨ Features

  • d173cb1 ✨ Addons can now specify what addons are required to be loaded before it
  • c0dc540 ✨ Allow to change the remember property via the isSessionRemembered method
  • f152d95 ✨ πŸ’₯ 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 improvements
  • 5865c51 ✨ Changed lifetime to remember
  • 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 lifetime setting with remember
  • BREAKING CHANGE: πŸ’₯ Removed the getLifeTimeSeconds method
  • 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 trait
  • e3c00de ♻️ Refactor doctum.config.php
  • a72432d ♻️ Refactor doctum.config.php
  • 6331b3c ♻️ General refactor

Rename

  • 768152a addons: 🚚 setAddonAttributes renamed to setAddonProperties

🎨 Code styling

  • 1b6448b πŸ’„ Minor example styling improvement

πŸ”€ Pull Requests

  • befa080 Merge pull request #9 from richstandbrook/patch-1
    feat: ✨ Be able to programmatically signup users