1
deepthin
SQmail automatic login
  • 2004/4/11 16:55

  • deepthin

  • Just popping in

  • Posts: 15

  • Since: 2004/4/8 5


My site only has 4 users (my famliy) and they have the same login and password as their mail accounts. It would be great if they didn't have to login twice. Is there a way to enable this?

2
deepthin
Re: SQmail automatic login
  • 2004/4/18 18:39

  • deepthin

  • Just popping in

  • Posts: 15

  • Since: 2004/4/8 5


I was thinking of letting user.php call modules/sqMail/redirect.php

What's the best way to reuse the username and password?

3
Herko
Re: SQmail automatic login
  • 2004/4/18 18:45

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


the problem is that XOOPS stores the password as an MD5 hash value, meaning an encrypted value. When it checks a password (when you login), it doesn't decrypt the stored password (as MD5 has no decryption), but it encrypts the entered password, and checks that to the encrypted password in the database. If they're the same, it's ok.

I don't know how SQmail handles passwords, but if it just stores it in the db, then it can't be checked with the XOOPS password, as they are not stored in the same way.

Also, contact wjue about this, as I believe it's his module?

Herko

4
deepthin
Re: SQmail automatic login
  • 2004/4/18 19:11

  • deepthin

  • Just popping in

  • Posts: 15

  • Since: 2004/4/8 5


The SQmail system uses a complex login procedure (from what I can tell, with some sort of one-time-pad salt and what not).

But it's vefified from a postvariable just like user.php does.
Is this password:

$pass = !isset($HTTP_POST_VARS['pass']) ? '' : trim($HTTP_POST_VARS['pass']);

at the top of include/checklogin.php already hashed?

I'll ask wjue if he can take a look at this thread.

5
wjue
Re: SQmail automatic login
  • 2004/4/21 23:36

  • wjue

  • Quite a regular

  • Posts: 315

  • Since: 2002/8/3 7


I think you can use the sqmail login to autologin the XOOPS account, the problem is that your POP/IMAP email account name and pass can be different from Xoops', a XOOPS user can have multiple email accounts or none at all!

In current XOOPS implementation there is no info about the mapping of Xoopsuser-EmailUser, so the mail module should also maintain the mapping. In short, integration is possible provided hacking either XOOPS core and sqMail.

wjue

6
deepthin
Re: SQmail automatic login
  • 2004/4/25 10:55

  • deepthin

  • Just popping in

  • Posts: 15

  • Since: 2004/4/8 5


Since my mapping is one on one same user same password all I really need to do is retain the input from the loginform and pass it to sqmail redirect.php aswell as user.php.

I'm I correct?

Login

Who's Online

213 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits