raspap-webgui-mirror/templates/admin.php

68 lines
3.2 KiB
PHP
Raw Permalink Normal View History

2019-08-18 22:39:22 +00:00
<div class="row">
<div class="col-lg-12">
2019-10-12 22:04:27 +00:00
<div class="card">
2019-11-01 09:08:49 +00:00
<div class="card-header">
<div class="row">
<div class="col">
<i class="fas fa-user-lock me-2"></i><?php echo _("Authentication"); ?>
2019-11-01 09:08:49 +00:00
</div>
</div><!-- /.row -->
</div><!-- /.card-header -->
2019-10-12 22:04:27 +00:00
<div class="card-body">
<?php $status->showMessages(); ?>
<h4><?php echo _("Authentication settings") ;?></h4>
<form role="form" action="auth_conf" method="POST" class="needs-validation" novalidate>
<?php echo CSRFTokenFieldTag() ?>
2019-08-18 22:39:22 +00:00
<div class="row">
<div class="mb-3 col-md-6">
2019-08-18 22:39:22 +00:00
<label for="username"><?php echo _("Username"); ?></label>
<input type="text" class="form-control" name="username" value="<?php echo htmlspecialchars($username, ENT_QUOTES); ?>" required />
<div class="invalid-feedback">
<?php echo _("Please provide a valid username."); ?>
</div>
2019-08-18 22:39:22 +00:00
</div>
</div>
<div class="row">
<div class="mb-3 col-md-6">
<div class="mb-2"><?php echo _("Old password"); ?></div>
2024-10-26 08:16:09 +00:00
<div class="input-group has-validation">
<input type="password" class="form-control" name="oldpass" required />
2024-10-26 08:16:09 +00:00
<div class="input-group-text js-toggle-password" data-bs-target="[name=oldpass]" data-toggle-with="fas fa-eye-slash"><i class="fas fa-eye mx-2"></i></div>
<div class="invalid-feedback">
<?php echo _("Please enter your old password."); ?>
</div>
</div>
2019-08-18 22:39:22 +00:00
</div>
</div>
<div class="row">
<div class="mb-3 col-md-6">
<div class="mb-2"><?php echo _("New password"); ?></div>
2024-10-26 08:16:09 +00:00
<div class="input-group has-validation">
<input type="password" class="form-control" name="newpass" required />
2024-10-26 08:16:09 +00:00
<div class="input-group-text js-toggle-password" data-bs-target="[name=newpass]" data-toggle-with="fas fa-eye-slash"><i class="fas fa-eye mx-2"></i></div>
<div class="invalid-feedback">
<?php echo _("Please enter a new password."); ?>
</div>
</div>
2019-08-18 22:39:22 +00:00
</div>
</div>
<div class="row">
<div class="mb-3 col-md-6">
<div class="mb-2"><?php echo _("Repeat new password"); ?></div>
2024-10-26 08:16:09 +00:00
<div class="input-group has-validation">
<input type="password" class="form-control" name="newpassagain" required />
2024-10-26 08:16:09 +00:00
<div class="input-group-text js-toggle-password" data-bs-target="[name=newpassagain]" data-toggle-with="fas fa-eye-slash"><i class="fas fa-eye mx-2"></i></div>
<div class="invalid-feedback">
<?php echo _("Please re-enter your new password."); ?>
</div>
</div>
2019-08-18 22:39:22 +00:00
</div>
</div>
<input type="submit" class="btn btn-outline btn-primary" name="UpdateAdminPassword" value="<?php echo _("Save settings"); ?>" />
</form>
2019-10-12 22:04:27 +00:00
</div><!-- /.card-body -->
2019-10-13 22:49:37 +00:00
<div class="card-footer"></div>
2019-10-12 22:04:27 +00:00
</div><!-- /.card -->
2019-08-18 22:39:22 +00:00
</div><!-- /.col-lg-12 -->
</div><!-- /.row -->