Re: Change username in Auth
| From: | Adam Ashley | Date: | Tue, 06 Mar 2007 18:10:16 +0000 |
| Subject: | Re: Change username in Auth | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26741@lists.php.net to get a copy of this message | ||
On Sat, 3 Mar 2007 15:22:11 -0500, Bob Bell <b_pear@thebellsplace.com> wrote:
I've just started using Auth, and it seems pretty nice. I'm using it in conjunction with MDB2. However, I've got one thing that's puzzling me. In my application of Auth, I'm using email addresses to login. Of course, that means that I need to allow for users to update there email addresses. However, I don't see method in Auth that allows for a username change. I could remove the old username and add the new username, but then I force the user to re-enter their password. For now, I'm simply updating the username using database operations. However, I was wondering if there was a way to do it through Auth that I'm missing.There isn't. Very few of the Auth backends implement any of the data manipulation functions so they are very basic. Mostly I recommend working directly with the backend. Auth2 will like drop all the manipulation functions and focus on authentication and session management. Adam Ashley