Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-29 19:50:02 +0300
committerLukas Reschke <lukas@owncloud.com>2016-06-29 19:50:02 +0300
commit84c1547c853081bf101528ecc60529e023ebc2ff (patch)
tree7a4c7bb3c59912f810ac10f9ddd77e5c3f42fe0b /templates
parent03646e61590d206e34cb19251af9377a61563282 (diff)
Add application specific passwords
Fixes https://github.com/nextcloud/user_saml/issues/1
Diffstat (limited to 'templates')
-rw-r--r--templates/admin.php (renamed from templates/settings.php)4
-rw-r--r--templates/personal.php40
2 files changed, 42 insertions, 2 deletions
diff --git a/templates/settings.php b/templates/admin.php
index 7644a7ed..2f751ae9 100644
--- a/templates/settings.php
+++ b/templates/admin.php
@@ -1,6 +1,6 @@
<?php
-script('user_saml', 'settings');
-style('user_saml', 'settings');
+script('user_saml', 'admin');
+style('user_saml', 'admin');
/** @var array $_ */
?>
diff --git a/templates/personal.php b/templates/personal.php
new file mode 100644
index 00000000..64716585
--- /dev/null
+++ b/templates/personal.php
@@ -0,0 +1,40 @@
+<?php
+style('user_saml', 'personal');
+
+script('user_saml', [
+ 'personal/authtoken',
+ 'personal/authtoken-collection',
+ 'personal/authtoken_view',
+ 'personal',
+]);
+
+/** @var array $_ */
+?>
+
+<div id="user-saml-apppasswords" class="section">
+ <h2><?php p($l->t('App passwords'));?></h2>
+ <span class="hidden-when-empty"><?php p($l->t("You've linked these apps."));?></span>
+ <table>
+ <thead class="hidden-when-empty">
+ <tr>
+ <th><?php p($l->t('Name'));?></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody class="token-list icon-loading">
+ </tbody>
+ </table>
+ <p><?php p($l->t('An app password is a passcode that gives an app or device permissions to access your %s account.', [$theme->getName()]));?></p>
+ <div id="user-saml-app-password-form">
+ <input id="user-saml-app-password-name" type="text" placeholder="<?php p($l->t('App name')); ?>">
+ <button id="user-saml-add-app-password" class="button"><?php p($l->t('Create new app password')); ?></button>
+ </div>
+ <div id="user-saml-app-password-result" class="hidden">
+ <span><?php p($l->t('Use the credentials below to configure your app or device.')); ?></span>
+ <div class="user-saml-app-password-row">
+ <span class="user-saml-app-password-label"><?php p($l->t('Password')); ?></span>
+ <input id="user-saml-new-app-password" type="text" readonly="readonly"/>
+ <button id="user-saml-app-password-hide" class="button"><?php p($l->t('Done')); ?></button>
+ </div>
+ </div>
+</div>