[web2py] Is there anyway to register a user manually just like login_bare? I am using it in the mobile app.

2012-09-13 Thread Kenny
login_bare is so useful for accessing the database manually in mobile application, is there anyway to let the users to register the website via mobile application? ex) register_bare(id,password) - Save it in the database - user is registered. I wasn't able to find how I should make this

Re: [web2py] Is there anyway to register a user manually just like login_bare? I am using it in the mobile app.

2012-09-13 Thread Bruno Rocha
*Create this function in some model* * * *def new_user(first_name, last_name, email, passw): **users = db(db.auth_user.email==email).select() **if users: **return users[0].id **else: **my_crypt = CRYPT(key=auth.settings.hmac_key) **