First, I'd advise against doing this, at least initially. Take what Web2py gives you for free and concentrate on your app.
2nd, web2py URLs do not end in ".html" 3rd, i think you would use this for login: http://web2py.com/books/default/chapter/29/09/access-control#Manual-Authentication On Thursday, June 15, 2017 at 12:42:22 AM UTC-7, hardclock wrote: > > > I made a custom signin form using javascript and ajax to check for > duplicated user/wrong username-password combination.The ajax request I made > is like this > > $.ajax({ > url:'../default/signin.html', > type:'POST', > data:{ > username:username, > password:password, > email:email > }, > success:function (errorCode) { //recieve the error code from default.py > if( errorCode ==0){ //print error message,stop the submit page > }else{ //redirect to user's page > } > }); > The ajax sends request to the same page,then the deafult/(signin)function > will check database for match usn/pssw and return back the error code. > That was my original approach but I couldn't return back the value to the > ajax request.Is there anyway to do it? > Please excuse the weird text formatting,I copied them directly from the > development console. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.