mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
Revert "Updated modules to allow for partial overrides without errors"
This reverts commit db949bb802
.
This commit is contained in:
parent
d6cf791677
commit
b202e02fbf
123 changed files with 471 additions and 768 deletions
|
@ -1,8 +1,9 @@
|
|||
<?php
|
||||
|
||||
|
||||
require_once('library/openid.php');
|
||||
|
||||
if(! function_exists('openid_content')) {
|
||||
|
||||
function openid_content(&$a) {
|
||||
|
||||
$noid = get_config('system','no_openid');
|
||||
|
@ -24,8 +25,8 @@ function openid_content(&$a) {
|
|||
goaway(z_root());
|
||||
}
|
||||
|
||||
$r = q("SELECT `user`.*, `user`.`pubkey` as `upubkey`, `user`.`prvkey` as `uprvkey`
|
||||
FROM `user` WHERE `openid` = '%s' AND `blocked` = 0
|
||||
$r = q("SELECT `user`.*, `user`.`pubkey` as `upubkey`, `user`.`prvkey` as `uprvkey`
|
||||
FROM `user` WHERE `openid` = '%s' AND `blocked` = 0
|
||||
AND `account_expired` = 0 AND `account_removed` = 0 AND `verified` = 1 LIMIT 1",
|
||||
dbesc($authid)
|
||||
);
|
||||
|
@ -39,7 +40,7 @@ function openid_content(&$a) {
|
|||
require_once('include/security.php');
|
||||
authenticate_success($r[0],true,true);
|
||||
|
||||
// just in case there was no return url set
|
||||
// just in case there was no return url set
|
||||
// and we fell through
|
||||
|
||||
goaway(z_root());
|
||||
|
@ -93,4 +94,3 @@ function openid_content(&$a) {
|
|||
goaway(z_root());
|
||||
// NOTREACHED
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue