Merge branch 'dev' into oauth2
This commit is contained in:
		| @@ -255,7 +255,7 @@ class Channel extends \Zotlabs\Web\Controller { | ||||
| 						AND (abook.abook_blocked = 0 or abook.abook_flags is null) | ||||
| 						AND item.item_wall = 1  | ||||
| 						$sql_extra $sql_extra2 | ||||
| 						ORDER BY created DESC $pager_sql ", | ||||
| 						ORDER BY created DESC, id $pager_sql ", | ||||
| 						intval(\App::$profile['profile_uid']) | ||||
| 					); | ||||
| 				} | ||||
|   | ||||
| @@ -166,7 +166,7 @@ class Magic extends \Zotlabs\Web\Controller { | ||||
|  | ||||
| 			$token = random_string(); | ||||
|  | ||||
| 			\Zotlabs\Zot\Verify::create('auth',$channel['channel_id'],$token,$x[0]['hubloc_url']); | ||||
| 			\Zotlabs\Lib\Verify::create('auth',$channel['channel_id'],$token,$x[0]['hubloc_url']); | ||||
| 	 | ||||
| 			$target_url = $x[0]['hubloc_callback'] . '/?f=&auth=' . urlencode(channel_reddress($channel)) | ||||
| 				. '&sec=' . $token . '&dest=' . urlencode($dest) . '&version=' . ZOT_REVISION; | ||||
|   | ||||
| @@ -142,6 +142,7 @@ class New_channel extends \Zotlabs\Web\Controller { | ||||
| 			'$role'		=> $role, | ||||
| 			'$default_role' => $default_role, | ||||
| 			'$nickname'     => $nickname, | ||||
| 			'$validate'     => t('Validate'), | ||||
| 			'$submit'       => t('Create'), | ||||
| 			'$channel_usage_message' => $channel_usage_message | ||||
| 		)); | ||||
|   | ||||
| @@ -42,7 +42,7 @@ class Owa extends \Zotlabs\Web\Controller { | ||||
| 									logger('OWA success: ' . $hubloc['hubloc_addr'],LOGGER_DATA); | ||||
| 									$ret['success'] = true; | ||||
| 									$token = random_string(32); | ||||
| 									\Zotlabs\Zot\Verify::create('owt',0,$token,$hubloc['hubloc_addr']); | ||||
| 									\Zotlabs\Lib\Verify::create('owt',0,$token,$hubloc['hubloc_addr']); | ||||
| 									$result = ''; | ||||
| 									openssl_public_encrypt($token,$result,$hubloc['xchan_pubkey']); | ||||
| 									$ret['encrypted_token'] = base64url_encode($result); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user