Merge pull request #4092 from MrPetovan/task/3954-move-auth-to-src
Move auth to src
This commit is contained in:
@@ -61,7 +61,7 @@ class Group extends BaseObject
|
||||
* @param int $cid
|
||||
* @return array
|
||||
*/
|
||||
private static function getIdsByContactId($cid)
|
||||
public static function getIdsByContactId($cid)
|
||||
{
|
||||
$condition = ['contact-id' => $cid];
|
||||
$stmt = dba::select('group_member', ['gid'], $condition);
|
||||
|
||||
@@ -198,8 +198,6 @@ class User
|
||||
$password = $password1;
|
||||
}
|
||||
|
||||
$tmp_str = $openid_url;
|
||||
|
||||
if ($using_invites) {
|
||||
if (!$invite_id) {
|
||||
throw new Exception(t('An invitation is required.'));
|
||||
@@ -212,7 +210,7 @@ class User
|
||||
|
||||
if (!x($username) || !x($email) || !x($nickname)) {
|
||||
if ($openid_url) {
|
||||
if (!validate_url($tmp_str)) {
|
||||
if (!validate_url($openid_url)) {
|
||||
throw new Exception(t('Invalid OpenID url'));
|
||||
}
|
||||
$_SESSION['register'] = 1;
|
||||
@@ -235,7 +233,7 @@ class User
|
||||
throw new Exception(t('Please enter the required information.'));
|
||||
}
|
||||
|
||||
if (!validate_url($tmp_str)) {
|
||||
if (!validate_url($openid_url)) {
|
||||
$openid_url = '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user