wet-boew / wet-boew-php

PHP variant of the Web Experience Toolkit (WET)
http://wet-boew-php.azurewebsites.net/demos-php/index.php
Other
24 stars 21 forks source link

WET 4 - Missing support for session login/logout (sign in/sign out) #181

Open michael-milette opened 8 years ago

michael-milette commented 8 years ago

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

Support for Sign out

Additional reference information:

image

image

Let me know if you have any questions.

Best regards,

Michael

michael-milette commented 8 years ago

Any news on this issue @upsonp ?

upsonp commented 8 years ago

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.

michael-milette commented 8 years ago

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