Ok, I followed this example and made changes to the db.py to use username
instead of email attribute.

In your controller, auth.login_bare is the trick:

email, password = request.post_vars['email'],
request.post_vars['password']if not auth.login_bare(email, password):
     db.auth_user.insert(
          first_name=None,
          last_name=None,
          email=email,
          password=db.auth_user.password.requires[0](password)[0]
     )
     auth.login_bare(email, password)

shortened it and changed it to:

username, password = request.post_vars['username'],
request.post_vars['password']if not auth.login_bare(username,
password):
     auth.login_bare(username, password)
with the view looking like:
<form enctype="multipart/form-data"
  action="{{=URL()}}" method="post"> <!--{{#or use =form.custom.begin}}-->
     <div class="form-group">
          <input type="text" class="form-control" name="email">
     </div>
     <div class="form-group">
          <input type="password" class="form-control" name="password">
     </div>
     <button type="submit">
           Submit
     </button></form> <!--{{#or use =form.custom.end}}-->

What I click to fire off the "bare login" all I get is an empty web page

that says "None"

What do i need to do to get login_bare to work ?

Thanks ...


*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division

-- 
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.

Reply via email to