Monday, January 7, 2013

RE: How can i use double login form in a django app redireting to

two different pages
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

> My problem is how to authencate the first login form
> that wil redirect user to the registration page using the
> scratch card
> info(pin, serial no) because i intend storing the scratch
> card

Just do it like you are authenticating a username and password
combination. You should already have all the pin and serial number
combinations in your database. When a user supplies a pin and serial
number, you check if the data combination matches any record in your
database. If it does, you can add a key to the session that tells your
app that the user has passed scratch card number validation then
redirect to the account creation form. You should check the session to
make sure that the key exists in the session before presenting the
account creation form.

I hope this helps. If it doesn't, you might get better responses by
saying what exactly you have tried and where you have gotten stuck.

Sent from my Windows Phone
From: Okorie Emmanuel
Sent: 1/7/2013 9:44 PM
To: Django users
Subject: How can i use double login form in a django app redireting to
two different pages
Am new to django and i want to develop an e-registration portal. User
is require to login with details from a scratch card(pin and serial
no) and is redirected to a registration page to create an account and
thus can view account infor using another login form this time django
user login(auth). My problem is how to authencate the first login form
that wil redirect user to the registration page using the scratch card
info(pin, serial no) because i intend storing the scratch card
info(pin, serial no) in the database. Pls i need a clue on how to
achieve this

--
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.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.

--
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.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment