if I have an ActiveYN field in my user table,
whats the easiest way to prevent them logging in?
I have an init process.
In that I'm doing a IF LoggedInSystemuser.ActiveYN = 'No' THEN xxxxx
If I do a LOGOUT, then it still shows the VP they came in on, but pops up the "Session has timed out" msg. Kinda fugly
I tried doing a DISPLAY URL after that, but according to the Logger, it appends "IN NEW WINDOW" to that and Chrome will block a popup window attempt. After allowing popup, it shows the URL in a new tab, but now a spinner in the original window.
I could create another VP and a more friendly screen, but was hoping for something more straightforward right there after the "THEN"
Ideas?
how to handle a Inactive user logging in?
how to handle a Inactive user logging in?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: how to handle a Inactive user logging in?
Hi Jaymer,
Here is my suggestion..
- create a blank VP
- create a process which will check the LoggedInUser Active status, if yes then move to main VP else logout with DISPLAY MESSAGE if you care.
- place the process on the blank VP initialising setting area
Let me know if it help.
Here is my suggestion..
- create a blank VP
- create a process which will check the LoggedInUser Active status, if yes then move to main VP else logout with DISPLAY MESSAGE if you care.
- place the process on the blank VP initialising setting area
Let me know if it help.
From,
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Re: how to handle a Inactive user logging in?
I do something similar where I have VP which is used only for "logout" operations and that VP only has the "Logout" command where you can also set a exit URL the user is then directed to (i.e I would have a fancy message first upon initial logon and then open up the logout VP to logout/redirect the user to the main system/company website).
Henrik (V8 Developer Ed. - Windows)
Re: how to handle a Inactive user logging in?
For the xxxxx do a REPORT ERROR
Something like:
IF LoggedInSystemuser.ActiveYN = 'No' THEN
REPORT ERROR 'User inactive'
What will happen:
The VP displays along with the error message which also has an "OK" button
When the "OK" button is pressed, the VP is replaced with the login page.
Bob
Re: how to handle a Inactive user logging in?
YES @BobK !!!
Thats the perfect solution.
Perhaps undocumented, but doing a REPORT ERROR in an InitializationProcess after login produces a clean message, logout & return to login page.
Thats the perfect solution.
Perhaps undocumented, but doing a REPORT ERROR in an InitializationProcess after login produces a clean message, logout & return to login page.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL