update models + added social network account services
This commit is contained in:
15
lib/User/Helper/GravatarHelper.php
Normal file
15
lib/User/Helper/GravatarHelper.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace Da\User\Helper;
|
||||
|
||||
class GravatarHelper
|
||||
{
|
||||
public function buildId($email)
|
||||
{
|
||||
return md5(strtolower(trim($email)));
|
||||
}
|
||||
|
||||
public function getUrl($id, $size = 200)
|
||||
{
|
||||
return '//gravatar.com/avatar/' . $id . '?s=' . $size;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user