summaryrefslogtreecommitdiffstats
path: root/apps/encryption/templates/invalid_private_key.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/templates/invalid_private_key.php')
-rw-r--r--apps/encryption/templates/invalid_private_key.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/encryption/templates/invalid_private_key.php b/apps/encryption/templates/invalid_private_key.php
new file mode 100644
index 00000000000..b148e65b199
--- /dev/null
+++ b/apps/encryption/templates/invalid_private_key.php
@@ -0,0 +1,12 @@
+<ul>
+ <li class='error'>
+ <?php $location = \OC_Helper::linkToRoute( "settings_personal" ).'#changePKPasswd' ?>
+
+ <?php p($_['message']); ?>
+ <br/>
+ <?php if($_['errorCode'] === \OCA\Files_Encryption\Crypt::ENCRYPTION_PRIVATE_KEY_NOT_VALID_ERROR): ?>
+ <?php p($l->t('Go directly to your %spersonal settings%s.', array('<a href="'.$location.'">', '</a>'))); ?>
+ <?php endif; ?>
+ <br/>
+ </li>
+</ul>