Isn't that the default behavior? I mean, after registration a user is
automatically logged in.
Anyway, what I did was when a currently logged-in and unverified user's
account is verified or updated by the admin, his status will be updated
when he checks his profile (or logs out and logs in again.)
After the user registers, you should probably redirect him to a login
page that politely says something like:
Thank you for registering. Log in now to get access to the all the
features of our fantastic site.
On Dec 14, 11:37 pm, Anthony wrote:
> On Wednesday, December 14, 2011 11:24:20 PM UT
On Wednesday, December 14, 2011 11:24:20 PM UTC-5, ニコノコ wrote:
>
> hmm ... I tried auth.user.account_status=db.auth_user[auth.user.id
> ].account_status
>
> , but I get an error:
> AttributeError: 'NoneType' object has no attribute 'account_status'
>
It will only work when there is actually a logg
hmm ... I tried auth.user.account_status=db.auth_user[auth.user.id
].account_status
, but I get an error:
AttributeError: 'NoneType' object has no attribute 'account_status'
On Wednesday, December 14, 2011, Anthony wrote:
> In my design case registration doesn't require approval, but access to
>
> In my design case registration doesn't require approval, but access to
> most features are disabled until approved. I suppose, had I realized
> this, my question should be, and is now:* is there a way to update a
> currently logged-in user's status to reflect the latest value in the db
>
I finally wrapped my head around this. (Yay!) My custom auth_user field
"account_status" is set by default to "unverified" until an administrator
verifies the account. If the user is logged-in while the admin makes the
update, the session cached value will remain "unverified" until the user
logs o
I finally wrapped my head around this. (Yay!) My custom auth_user field
"account_status" is set by default to "unverified" until an administrator
verifies the account. If the user is logged-in while the admin makes the
update, the session cached value will remain "unverified" until the user
logs o
I'm still stuck with this :(
I've already deleted my database to start from scratch but I am
encountering the same issue. For example, i deleted a record from
auth_account (in this case record #3) but when the I run the app and run a
trace with ipdb, my functions still return a row id 3, as if it
Yes, but exactly how are you accessing it? Show your model code, how you
are updating the data, and how you are then querying and displaying it.
On Sunday, December 11, 2011 11:23:39 PM UTC-5, ニコノコ wrote:
>
> I meant, if the data is accessed from a function.
>
> On Dec 12, 12:07 pm, Anthony wrot
I meant, if the data is accessed from a function.
On Dec 12, 12:07 pm, Anthony wrote:
> Can you show some code? What do you mean "check the data from a view"?
>
>
>
>
>
>
>
> On Sunday, December 11, 2011 8:43:50 PM UTC-5, ニコノコ wrote:
>
> > I have a custom auth_user field that I could edit from ad
Can you show some code? What do you mean "check the data from a view"?
On Sunday, December 11, 2011 8:43:50 PM UTC-5, ニコノコ wrote:
>
> I have a custom auth_user field that I could edit from admin (and I can
> verify that changes are actually written in the sqlite table) but every
> time I check t
And the other fields are still set to "none", while their true values are
otherwise.
On Monday, December 12, 2011, Nik Go wrote:
>
> Here's a screenshot. Noticed that i edited the name to"GJonathan" but the
> response.flash retrieves it as "Jonathan"
>
> On Monday, December 12, 2011, Nik Go wrot
12 matches
Mail list logo