WET 4 - Missing support for session login/logout (sign in/sign out)
Opened this issue · 3 comments
Support for this feature was added back into WET 4.0 this past summer but the feature doesn't appear to have been integrated into wet-boew-php.
Implementation requirements include:
Theme support
This feature should be available for all themes, not just the wet-boew theme.
User name
It should be expected that the username be provided by the application however a default placeholder should be implemented instead of getting a PHP error for an undefined variable.
Support for Sign in
- Should be optional. Not all sites require this feature.
- The "Register" button should be optional so that it does not need to appear in the case of a closed sites.
- Link should be configurable.
Support for Sign out
- Should be optional. Not all sites require this feature.
- The "Account settings" button should be optional as this is not required for all sites.
- Link should be configurable
Additional reference information:
- wet-boew/wet-boew#6232
- wet-boew/wet-boew#6990
- https://wet-boew.github.io/v4.0-ci/theme/content-signedon-en.html
- https://wet-boew.github.io/v4.0-ci/theme/content-signedon-fr.html
- https://wet-boew.github.io/v4.0-ci/theme/content-signedoff-en.html
- https://wet-boew.github.io/v4.0-ci/theme/content-signedoff-fr.html
Let me know if you have any questions.
Best regards,
Michael
Any news on this issue @upsonp ?
Sorry @michael-milette,
I didn't mean to ignore you, just really busy with other projects. I would like to have this feature in the pho-variant, but I don't have time right now to include it. It should definitely be a future update.
Hi @upsonp ,
No problem. However I will need the functionality sooner. If it is ok with you, I will work on it and send you the changes as soon as they are ready.
Here are the developer docs so far:
SIGN IN (Login) / SIGN OUT (logoff) BUTTONS
To make the following buttons appear on the page, you must define their URLs (will not appear if blank):
- Sign in (login): $_SITE['wb_signin_file_'.$_LANG_]
- Sign out (logoff): $_SITE['wb_signout_file_'.$_LANG_]
- Register: $_SITE['wb_register_file_'.$_LANG_]
- Account Settings: $_SITE['wb_sio_file_'.$_LANG_]
If you use any of these, the following string must be set to the user's firstname, username or full name when logged in:
$_SITE['wb_signedinas_name']
Best regards,
Michael