summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/account/password/forcedchange.tmpl')
-rw-r--r--web/templates/account/password/forcedchange.tmpl98
1 files changed, 98 insertions, 0 deletions
diff --git a/web/templates/account/password/forcedchange.tmpl b/web/templates/account/password/forcedchange.tmpl
new file mode 100644
index 0000000..d80b874
--- /dev/null
+++ b/web/templates/account/password/forcedchange.tmpl
@@ -0,0 +1,98 @@
+{{define "forcedPasswordChange"}}
+
+ <!DOCTYPE html>
+ <html lang="en">
+
+ <head>
+ <title>Gentoo Security</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="theme-color" content="#54487a">
+ <meta name="description" content="Gentoo CVE Tool">
+
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
+
+ <link rel="icon" href="https://packages.gentoo.org/favicon.ico" type="image/x-icon">
+ </head>
+
+ <body style="border-top: none;background: #fff;">
+
+ <div class="container vh-100 d-flex">
+ <div class="row flex-grow-1">
+ <div class="col-12 d-flex align-items-center">
+
+ <div class="row w-100">
+
+ <div class="col-12 align-items-center">
+ <div class="card border-grey mx-auto" style="max-width: 430px;border-color: lightgrey!important;">
+ <div class="card-body">
+ <div class="text-center" style="margin-top:10px;margin-bottom:20px;">
+ <object data="https://www.gentoo.org/assets/img/logo/gentoo-signet.svg" type="image/svg+xml" style="max-width: 80px;">
+ <img src="https://assets.gentoo.org/tyrian/site-logo.png" alt="Gentoo Linux logo">
+ </object>
+ <h4 class="mt-2">Change your Password</h4>
+ </div>
+
+ <div class="text-left" style="padding-left: 1.25rem;padding-right: 1.25rem;">
+ Sorry, but you have to change your password, before you can continue.
+ </div>
+
+ <form action="/account/password" method="POST">
+ <div class="card mx-auto" style="max-width: 600px;background: none;border: none;">
+ <div class="card-body">
+ <input name="oldPassword" class="my-2" type="password" style="width: 100%;" placeholder="Old Password"/>
+ <input name="newPassword" class="my-2" type="password" style="width: 100%;" placeholder="New Password"/>
+ <input name="confirmedNewPassword" class="my-2" type="password" style="width: 100%;" placeholder="Confirm New Password"/>
+ <button type="submit" class="mt-2 float-right btn btn-primary" style="border-color: #54487A!important;background-color: #54487A!important;"> Change </button>
+ </div>
+ </div>
+ </form>
+
+ </div>
+ </div>
+ </div>
+
+ <div class="col-12 mt-3 align-items-center">
+ <div class="card border-0 text-right text-muted mx-auto" style="max-width: 430px;">
+ <span class="" style="font-size: 80%;">
+ <a class="mr-4 text-muted" style="text-decoration: none;" data-toggle="collapse" href="#create-new-account-notice" role="button" aria-expanded="false" aria-controls="multiCollapseExample1">New Account</a>
+ <a class="text-muted" style="text-decoration: none;" data-toggle="collapse" href="#reset-password-notice" role="button" aria-expanded="false" aria-controls="multiCollapseExample1">Reset Password</a>
+ </span>
+
+
+
+ <div class="card-body">
+ <div class="collapse mt-2" id="create-new-account-notice">
+ <div class="card card-body border-0 p-0">
+ <small>To create a new account, please contact the security team and request access.</small>
+ </div>
+ </div>
+
+ <div class="collapse mt-2" id="reset-password-notice">
+ <div class="card card-body border-0 p-0">
+ <small>In case you've forgotten your password, please contact the security team and ask an admin to reset your password.</small>
+ </div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+
+ </div>
+ </div>
+
+
+
+ </div>
+ </div>
+
+
+ <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
+
+
+ </body>
+ </html>
+
+{{end}}