On Wednesday, June 1, 2016 at 2:13:45 AM UTC-4, rajjmatt...@gmail.com wrote:
>
> Yes. you are right. Just curious to know where Profile is defined like in 
> which html file? I can't seem to find that.
>

Do you want to know where the auth dropdown menu is defined, or where the 
actual Profile page is defined? Assuming you are talking about the 
scaffolding application, the menu is created by auth.navbar() and is 
included in layout.html. All of the Auth actions are handled via the user() 
function in the default.py controller (and the associated 
/views/default/user.html view).

Note, it doesn't make sense to change "Profile" to "Register" in the 
navbar. The way it works now is if the user is not logged in, the navbar 
includes a link to "Register", and if the user is logged in, the navbar 
instead includes a link to the "Profile" action (doesn't make sense for a 
logged in user to register). If you do not want to expose the "profile" 
action at all, you can instead add it to auth.settings.actions_disabled.

Anthony

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