mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
port hubzillas OpenWebAuth - rename some methods and classes
This commit is contained in:
parent
b65e4b278b
commit
f0235c4a98
6 changed files with 9 additions and 12 deletions
|
@ -1052,7 +1052,7 @@ class Profile
|
|||
*
|
||||
* @param string $token
|
||||
*/
|
||||
public static function owtInit($token)
|
||||
public static function openWebAuthInit($token)
|
||||
{
|
||||
$a = get_app();
|
||||
|
||||
|
@ -1084,19 +1084,17 @@ class Profile
|
|||
|
||||
$arr = [
|
||||
'visitor' => $visitor,
|
||||
'url' => $a->query_string,
|
||||
'session' => $_SESSION
|
||||
'url' => $a->query_string
|
||||
];
|
||||
/**
|
||||
* @hooks magic_auth_success
|
||||
* Called when a magic-auth was successful.
|
||||
* * \e array \b visitor
|
||||
* * \e string \b url
|
||||
* * \e array \b session
|
||||
*/
|
||||
Addon::callHooks('magic_auth_success', $arr);
|
||||
|
||||
$a->contact = $visitor;
|
||||
$a->contact = $arr['visitor'];
|
||||
|
||||
info(L10n::t('OpenWebAuth: %1$s welcomes %2$s', $a->get_hostname(), $visitor['name']));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue