1. Simplest is extending Auth:
http://web2py.com/books/default/chapter/29/09/access-control#Customizing-Auth

But depending on your situation you might implement a second table.

2. Yes, you can edit the /user views. Open up the /views/default/user.html 
and you can do something like:

{{if request.args(0)=='login':}}
    <h2>Login</h2>
    <div id="user_form">
        {{=form.custom.begin}}
        <p><label for="email">Email</label><br>
        {{=form.custom.widget.email}}</p>
        <p><label for="password">Password</label><br>
        {{=form.custom.widget.password}}</p>
        <p><input class="checkbox" id="auth_user_remember" name="remember" 
type="checkbox" value="on" checked />&nbsp;&nbsp;<label for=
"auth_user_remember">Remember me</label></p>
        <p><input type="submit" value="login" /></p>
        {{=form.custom.end}}
    <br/><a href="{{=URL(r=request,args='register')}}">register</a>
    <br/><a href="{{=URL(r=request,args='request_reset_password')}}">password 
help</a>
    </div>
{{else:}}
    <div id="user_form">
    {{=form}}
    </div>
{{pass}}

3. Yes, you can create your own app.css or whatever. Just make sure to 
include it in your layout.html. Put it last so it overrides anything 
previous.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to