are you saving your passwords as clear passwords?
can you elaborate a bit more? why are you checking for password on two
tables?
-
Cheers,
def AlonCarmel(request)
import simplejson as json
contact = {}
contant['email'] = '[email protected]';
contact['twitter'] = '@aloncarmel';
contact['web'] = 'http://aloncarmel.me';
contact['phone'] = '+972-54-4860380';
return HttpResponse(json.dumps(contact))
* If you received an unsolicited email from by mistake that wasn't of your
matter please delete immediately. All E-mail sent from Alon Carmel is
copyrighted to Alon Carmel 2008. Any details revealed in e-mails sent by
Alon Carmel are owned by the Author only. Any attempt to duplicate or
imitate any of the Content is prohibited under copyright law 2008.
On Sun, Jul 11, 2010 at 4:59 PM, Massimiliano <
[email protected]> wrote:
> Hi all,
> I'm trying to check the password of my user. But it doesn't want to work.
>
> class PAGAMENTI(db.Expando):
> data = db.DateTimeProperty(auto_now_add=True)
>
> class BIG(db.Expando):
> data = db.DateTimeProperty(auto_now_add=True)
>
> class BigHandler(webapp.RequestHandler):
>
> def get(self):
> ......
>
> def post(self):
> password = self.request.get('password')
> controllo = db.Query(PAGAMENTI).filter('password=',
> password).fetch(limit=1)
> controllo2 = db.Query(BIG).filter('password=', password).fetch(limit=1)
> if len(controllo) == 1 and len(controllo2) == 0:
> big = BIG()
> big.nome = self.request.get('nome')
> big.msg = self.request.get('msg')
> big.password = password
> big.put()
> self.redirect('/big')
>
> Could you please help me. The if doesn't work, It always goes in the else.
>
> Thanks
>
> Max
>
>
> --
>
> My email: [email protected]
> My Google Wave: [email protected]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.