Gossamer Forum
Home : Products : DBMan : Installation :

Email for UID?

Quote Reply
Email for UID?
I'd like to have the uid to be the person's email address. Is this possible? if so, what do i need to do? Please help?

Quote Reply
Re: Email for UID? In reply to
Because of the way that DBMan uses the userid in the url's it would not work to use the email address for the login. I can't remember the full explaination, but I'm sure if you search the forums you will find a full explaination of the reason why.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Email for UID? In reply to
I've been through quite a bit of the messages, and maybe i missed it, but i didn't see anything to do with emails. I did see one about have spaces in the login, and someone was able to figure it out for that. I was kinda hoping someone might be able to give me a push in the right direction on this one as well.

Quote Reply
Re: Email for UID? In reply to
What I have done allows you to login with your email, but when you sign up you have to choose a userid.
My setup is very complicated, but to simplify....all you would need to do is have the user enter a userid, email, and password at time of signup having it all written to the .pass file.

Then taken from http://www.gossamer-threads.com/...ew=&sb=&vc=1
In order for your users to be able to enter their email address or userid, you'll have to make some changes to the auth.pl file.

In sub auth_check_password, make the following changes:

my ($view, $add, $mod, $del, $admin, $email);

($userid, $pw, $view, $add, $del, $mod, $admin, $email) = split (/:/,
$pass);

if ((($in{'userid'} eq $userid) or ($in{'userid'} eq $email)) &&
(crypt($in{'pw'}, $pw) eq $pw)) {


---------
This will check for either, giving your users their choice of login. By keeping the userid field it solves any problems with the url because userid is still used everywhere else.

Hope this helps.
Adam