Cancel button to interrupt log in?

Hello,

users in my application can, in any moment, press the log-in button to authenticate. Things are working fine so far. The login page is a one-way only, though: there’s a “Sign in” button, but there is no way to cancel the log in and go back.

Is there a way to enable a cancel button and go back to the previous URL (or a custom one)?
Thanks

Hi @akiross , I’m sure this is possible with two types of methods, both include adding an additional button to the login template file (a .ftl file).
Method 1 (custom link): If you’re application is a web-app, then you can enter your web-app’s website link as the target page of the “CANCEL” button.
Method 2 (deeplink or universal link): There is this notion of deeplinks (or universal links), which are able to trigger the phone or desktop to open a locally running app. However, you app’s code also needs to support deeplinks/universal links. In the end the “CANCEL” button needs to open the app back to its original state with the deeplink/universal link. This is very similar as a website’s link.

I hope I was able to help!
Best,
Sven

1 Like