Sunday, January 27, 2013

how can i prevent a user from viewin a page without using the django @login decorator

i have a form that redirect a user to another page
when it validates


but again i discover that a user can view the that page by typing it on his or her url
without following the normal process of validation

how can i stop this, how can i force a user to see that redirect page only
when he/she  comes only from the main form page, what i mean a user
can only be redirected to the accept page only when he has the valid credentials
otherwise he/she cannot view the accept page even if he entered the correct url
on his browser.

 i intend doing  that without django @login decorator
 thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment