Pierre-Lannoy / wp-sessions

Powerful sessions manager for WordPress with sessions limiter and full analytics reporting capabilities.
https://perfops.one/
GNU General Public License v3.0
18 stars 5 forks source link

Redirect to custom page after login and session not allowed #3

Closed drmustafa1 closed 1 year ago

drmustafa1 commented 1 year ago

Hi , i'm wondering if there is way For Redirect the user to custom page after trying the login and session not allowed ( i don’t want custom massage , i want redirect to page i have made )

this is will be a great way to help users to know why i reject their login

Pierre-Lannoy commented 1 year ago

Hello @drmustafa1 !

When you say "this is will be a great way to help users to know why i reject their login" are you suggesting the standard messages or set messages (in plugin's settings) are not friendly or understandable or usable? Or just doesn't adhere to site's theme? Or something else?

Sorry to ask so many questions, but as you didn't follow the proposed "feature request" template, it needs a bit of rephrasing for me to understand the ins and outs…

drmustafa1 commented 1 year ago

hello Pierre Lannoy have a nice day

no the standard messages is very useful for some people but it's not enough for me and for other people also , I was mean with this sentence it would be easier to explain why the Session not allowed when we direct the user to custom page not show custom massege .

so if the user hits maximum number of active sessions i will explain why thats happen to the user by custom page i have made for this situation

summary : custom message is good but it would be not enough

drmustafa1 commented 1 year ago

aaawww

I think it will be done by adding a new option here which is " redirect to specific url " that marked in this photo

Pierre-Lannoy commented 1 year ago

Hi @drmustafa1 ! That's really good suggestion. I will see if/how it can be done. I will post thoughts and progress here.

drmustafa1 commented 1 year ago

Thank you for your efforts to help and develop

Have a nice day

Pierre-Lannoy commented 1 year ago

Hi @drmustafa1 ! Implementation is done: there's now a "fallback" page url to set in misc plugin's settings and it's possible to specify, on a per role basis, to redirect to this fallback page (instead of blocking or generating 403 errors). Let me do all the integration tests on my servers and I will release it on wp.org directory - in some hours if all go ok…

Pierre-Lannoy commented 1 year ago

Tests are done and it's published on wp.org 😉

Many thanks again for the suggestion.

drmustafa1 commented 1 year ago

Wow !!!!!

This is the fastest response i have seen , you deserve 5 stars for your creativity

thank you

Pierre-Lannoy commented 1 year ago

Haha! Thank you ❤️