hello
i don't wanna use defualt login screen i have created my own custom login screen but whenever i click on the open in browser it redirects me to default login screen can anyone help me how do i use my own custom login screen without using default login screen.
Hello Rishabb,
When you click in the "Open in browser" button in Service Studio, the application will try to redirect you automatically for the Default Screen defined in your module.
In my case, it is the MyVacations screen.
Once you try to open the screen, it really depends on the roles that have access to that screen. If it is Anonymous, it will open without any problems.
But if you have the Registered role or any other roles defined for that screen, it will throw a Security Exception (since you don't have a valid login for that user). This exception will be then treated by the Global Exception Handler (also defined in your module's properties).
If you open the code and watch this flow carefully, you will see that there is already a flow for Security Exceptions by default:
What is happening is that you are entering in this flow and being redirected for your Common\Login screen (default Login screen). So you just need to change that screen in the end of the flow for the one you pretend (like Sérgio mentioned) and you are good to go.
Hope that this helps you!
Kind regards,
Rui Barradas
Hi @Rishabh Bawne, You can update the login screen in the common flow of your entry module.
Hi Rishabb,
A simple way to fix this is finding usages of old login screen and then replacing it. the normal reason for this to be happening is because it does not find any logged user and some exceptions jump to the default login page.
hope it helps
Sergio