Posted on: 07/23/02 05:55pm
By: twistedfreak
Is this idea possible and does anyone know how to do it?
If the user logs on with the password that has been generated and sent to their email address on registry.
Before allowing access, Geeklog asks that user to change that password to something they can remember.
Any help with this would be great.
thanx
Change Password on First Logon
Posted on: 07/23/02 06:26pm
By: dreamscape
Yes, this is something that could be added onto the current version of geeklog but it's not something that is supported.
I imagine there are at least two decent ways to do this (and there are probably a lot more, but this is what I can come up with right now):
First:
add a column to the users table that is a bit, for first login. When an account is requested/created, you set that bit to 0 or false, and when they log in, if that bit is 0 or false, you make them change their password (and you change the status of that bit).
pros: relatively easy to add a column and check
cons: altering a core geeklog table isn't a good idea
Second:
write a piece of custom code that uses it's own individual table (one column here of UID would do). As people request add to the table, as they login, check for their existance in that table, if they exist in that table, make them change their password and remove them from the table.
pros: doesn't change the geeklog core tables
cons: call to an additional table, not that much of a con though.
hope that helps some......