send signature to lookup server
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
e3b10f3e6f
commit
f488258d64
2 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,8 @@ class UpdateLookupServer {
|
|||
$dataArray['website'] = isset($publicData[AccountManager::PROPERTY_WEBSITE]) ? $publicData[AccountManager::PROPERTY_WEBSITE]['value'] : '';
|
||||
$dataArray['twitter'] = isset($publicData[AccountManager::PROPERTY_TWITTER]) ? $publicData[AccountManager::PROPERTY_TWITTER]['value'] : '';
|
||||
$dataArray['phone'] = isset($publicData[AccountManager::PROPERTY_PHONE]) ? $publicData[AccountManager::PROPERTY_PHONE]['value'] : '';
|
||||
$dataArray['twitter_signature'] = isset($publicData[AccountManager::PROPERTY_TWITTER]['signature']) ? $publicData[AccountManager::PROPERTY_TWITTER]['signature'] : '';
|
||||
$dataArray['website_signature'] = isset($publicData[AccountManager::PROPERTY_WEBSITE]['signature']) ? $publicData[AccountManager::PROPERTY_WEBSITE]['signature'] : '';
|
||||
$dataArray['verificationStatus'] =
|
||||
[
|
||||
AccountManager::PROPERTY_WEBSITE => isset($publicData[AccountManager::PROPERTY_WEBSITE]) ? $publicData[AccountManager::PROPERTY_WEBSITE]['verified'] : '',
|
||||
|
|
|
@ -544,12 +544,14 @@ class UsersController extends Controller {
|
|||
$code = $codeMd5;
|
||||
$type = AccountManager::PROPERTY_TWITTER;
|
||||
$data = $accountData[AccountManager::PROPERTY_TWITTER]['value'];
|
||||
$accountData[AccountManager::PROPERTY_TWITTER]['signature'] = $signature;
|
||||
break;
|
||||
case 'verify-website':
|
||||
$accountData[AccountManager::PROPERTY_WEBSITE]['verified'] = AccountManager::VERIFICATION_IN_PROGRESS;
|
||||
$msg = $this->l10n->t('In order to verify your Website store following content in your web-root at \'.well-known/CloudIdVerificationCode.txt\' (please make sure that the complete text is in one line):');
|
||||
$type = AccountManager::PROPERTY_WEBSITE;
|
||||
$data = $accountData[AccountManager::PROPERTY_WEBSITE]['value'];
|
||||
$accountData[AccountManager::PROPERTY_WEBSITE]['signature'] = $signature;
|
||||
break;
|
||||
default:
|
||||
return new DataResponse([], Http::STATUS_BAD_REQUEST);
|
||||
|
|
Loading…
Reference in a new issue