plainblack.com
Username Password
search
Bookmark and Share

    

AJAX checks at registration?

User lrobinson
Date 1/26/2010 5:16 am
Views 775
Rating -1    Rate [
|
]
Previous · Next
User Message
lrobinson

Is there any code to do AJAX checks on user names and passwords as the user is filling in the fields on the createAccount page? (E.g. an onblur to check the username is not already taken, etc.)

 



Back to Top
Rate [
|
]
 
 
perlDreamer

There's no built-in code to do that, but the framework is in place to do it.  The best way to do that in WebGUI is to make a custom Form plugin, that does the AJAX, much like the Keywords form plugin does.

Then, alter the Auth code to use the new Form plugin instead of a regular text box for the username.



Back to Top
Rate [
|
]
 
 
patspam
That would be a great RFE.
As Colin says:1. A new WebGUI::Form:: package that wraps up a text input field with ajax checking for username uniqueness2. Similarly for password input (checking against current password constraint settings - length etc..) 3. Modify auth to use the new form classes instead of a regular text input fields
Patrick

On Fri, Jan 29, 2010 at 3:11 AM, <colink@perldreamer.com> wrote:
perlDreamer wrote:

There's no built-in code to do that, but the framework is in place to do it.  The best way to do that in WebGUI is to make a custom Form plugin, that does the AJAX, much like the Keywords form plugin does.

Then, alter the Auth code to use the new Form plugin instead of a regular text box for the username.



http://www.webgui.org/forums/dev/ajax-checks-at-registration/1


--

WebGUI
http://www.webgui.org




Back to Top
Rate [
|
]
 
 
lrobinson

I've created the RFE and donated some Karma.

http://www.webgui.org/rfe/request-for-enhancement/11383



Back to Top
Rate [
|
]
 
 
lrobinson

Thanks to those who've donated Karma to this RFE

http://www.webgui.org/rfe/request-for-enhancement/11383

Who knows, a little bit more and I might be tempted to have a go myself.

 



Back to Top
Rate [
|
]
 
 
lrobinson

I've fixed this locally. Wondering how best to share my code with the world.

Luke

 



Back to Top
Rate [
|
]
 
 
perlDreamer

You can attach patches to the RFE, or URLs for git pulls (with rev specs of all commits).  7.9 is now open for new development and this is a pretty simple change (one plugin and some minor form code changes to Auth).



Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved