Hi.

Yes there are. If you need more from the authorization you can expose those 
too, or all of them if you want to allow registration on the blog.
Usually I work on things where registration isn't good thing, and I need only 
login and logout.

If you want all the functions:
def user(): return dict(form = auth())

or some of them:
def login(): return dict(form = auth.login(next=URL(r=request, f="index")))
def logout(): return dict(form = auth.logout(next=URL(r=request, f="login")))
#any other function you need...

regards
mmlado

On Saturday 25 April 2009 12:53:13 Pynthon wrote:
> But I see that there is also with profiles etc.
>
> On Apr 25, 12:45 pm, Mladen Milankovic <mml...@gmail.com> wrote:
> > Hi.
> >
> > You can do something with the auth class.
> > Here some tutorial about
> > it.http://mdp.cti.depaul.edu/examples/default/tools
> >
> > You can expose only functions for login/logout. Create a user by hand,
> > through web2py admin.
> > Then create controllers/functions that requires authorization.
> >
> > For the safety... it should be enough safe for a blog. :)
> > Nothing is safe on the internet, theres always someone who can hack it.
> > The only question is: is it worth to hack it. :)
> >
> > regards
> > mmlado
> >
> > On Saturday 25 April 2009 12:32:10 Pynthon wrote:
> > > Thanks man! Works perfect! Maybe I want this blog for my public site.
> > > But I also want to make an admin panel. How need I to make that? I
> > > know how to work with sessions. But can it also be safe?
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to