From 5c202884e9596a47d38f5432b66117bcca373dc6 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 24 Apr 2017 12:20:36 +0200 Subject: [PATCH] pass verified status to template Signed-off-by: Bjoern Schiessle --- settings/personal.php | 4 +++ settings/templates/personal.php | 44 ++++++++++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/settings/personal.php b/settings/personal.php index 6fbe95f9ea..d81cdd7c2f 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -185,6 +185,10 @@ $tmpl->assign('websiteScope', $userData[\OC\Accounts\AccountManager::PROPERTY_WE $tmpl->assign('twitterScope', $userData[\OC\Accounts\AccountManager::PROPERTY_TWITTER]['scope']); $tmpl->assign('addressScope', $userData[\OC\Accounts\AccountManager::PROPERTY_ADDRESS]['scope']); +$tmpl->assign('websiteVerification', $userData[\OC\Accounts\AccountManager::PROPERTY_WEBSITE]['verified']); +$tmpl->assign('twitterVerification', $userData[\OC\Accounts\AccountManager::PROPERTY_TWITTER]['verified']); +$tmpl->assign('emailVerification', $userData[\OC\Accounts\AccountManager::PROPERTY_EMAIL]['verified']); + $tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser())); $tmpl->assign('certs', $certificateManager->listCertificates()); $tmpl->assign('showCertificates', $enableCertImport); diff --git a/settings/templates/personal.php b/settings/templates/personal.php index cea03fd148..fade96f026 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -111,7 +111,19 @@ - Verify + + placeholder="t('Your email address')); ?>" @@ -164,7 +176,20 @@ - Verify + + + @@ -178,7 +203,20 @@ - Verify + + +