Changeset 1209

Show
Ignore:
Timestamp:
07/18/10 21:33:13 (3 years ago)
Author:
d0nut
Message:

openid store, identifer host

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • openid/files/lib/data/openid/OpenID.class.php

    r1206 r1209  
    361361                // take default email 
    362362                if($me['email'] === null) { 
    363                         $me['email'] = sha1($me['identifier']).'@openid'; 
     363                        $host = parse_url($me['identifier'], PHP_URL_HOST); 
     364                        $host = preg_replace("/^www\./", "", $host); 
     365                        $me['email'] = md5($me['identifier']).'@openid.'.$host; 
    364366                } 
    365367