How can I create a custom xPages login form?

I need to create a custom login form to login to Domino using xPages.

I need the login to be like a user control, so I can place it on every page.

therefore, if the user does not log in when they access my site, they can do this using the username and password fields indicated in the upper right corner

any ideas how to do this?

+4
source share
4 answers

I wrote a short series of articles about using ajax for this. You can find links to articles on the Domino Designer wiki.

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/04022009013056PMWEBNJV.htm

Although this is intended to use the dojo dialog box to display input fields, you can use the same concepts if the input fields are always displayed in the banner.

+8
source

OpenNTF has many login controls. Optimal is a shift in control from Declan lynch;). ( sliding login on openntf ) This works very well. If you take the link from declan from your answer, and you look at its sliding logical control, I think you can create yourself such a login.

This mainly applies to the following

  • Allow user to enter username / password
  • Get username and password from form fields
  • Do dojo.xhrpost for names.nsf? login and send the redirect variable with you a message.
  • If successful, check the URL you are redirecting to. If this is the same as redirecting the URL you used to submit, you only need to check the cookies and your login.
+2
source

This control of logging in to F. Kranenburg can help you.

http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Xpages%20Dojo%20Login%20Custom%20Control

But it does NOT show the username and password fields when the user is not logged in, instead it shows the Login link, which then opens the Dojo dialog box that displays the username and password fields.

+1
source

I know this might be a bit late, but since I recently posted a user control for login ... you might be interested in my approach ;-) http://openntf.org/XSnippets.nsf/snippet.xsp?id = dojo-login-dialog-custom-control

+1
source

Source: https://habr.com/ru/post/1401881/


All Articles