Implemented security module - now completely locked out

In adding the security module to my applications, I would expect the system to redirect me to a login page when not logged in, I get nothing but ‘Unauthorized User’ pages in all of my apps. No redirect, no login page, no options. Not even for the Admin account. Is there something else I need to do here?

[ATTACH=CONFIG]n78212[/ATTACH]

unauser.png

When you deploy did you set the default application? That should be your login app.

Figured that part out, but now it redirects after login to the user administration pages, I had a main index page as my initial application. I want the users to go to that page, not security pages. I don’t see anywhere in the login application where it allows you to define the redirected page upon successful login. Reading the docs now but not seeing it.

I can’t look it up right now, but you defined it originally when you created the secuirty module. It asked for a main menu or something.

Then in the sec_Login app it creates (or whatever it is called), I believe it is the event onValidateSuccess

Look for a redirect toward the end. Something like:

sc_redir(‘secadmin_menu’);

You can modify that to whatever you app you want them to see. You could even add code to redirect members of different user groups to different apps. Make sure your apps are synchronized and proper permissions are there for all user groups.

Good luck,
Jamie

I’ve been here, fortunately for me, I was making once a day backups on my development server. Evidently, that doesn’t appear to be your case.