PTMagic/Monitor/Pages/SetupPassword.cshtml

54 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-05-22 10:11:50 +02:00
@page
@model SetupPasswordModel
@{
ViewData["Title"] = "";
Layout = "_LayoutPublic";
}
@section Styles {
}
<div class="card-box">
<div class="panel-heading">
<h3 class="text-center"> <strong class="text-custom">PT Magic</strong> </h3>
<p class="text-center">Setup your password.</p>
</div>
<div class="p-20">
<form class="form-horizontal m-t-20" method="post">
2021-02-19 22:14:01 +01:00
@if (System.IO.File.Exists(System.IO.Directory.GetCurrentDirectory().Split("Monitor")[0] + "settings.secure.json"))
{
<div class="form-group">
<div class="col-12">
<input name="OldPassword" class="form-control" type="password" required="" placeholder="Old Password">
</div>
</div>
}
2018-05-22 10:11:50 +02:00
<div class="form-group">
<div class="col-12">
<input name="Password" class="form-control" type="password" required="" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-12">
<input name="PasswordConfirm" class="form-control" type="password" required="" compare="Password" placeholder="Confirm Password">
</div>
</div>
<div class="form-group text-center m-t-40">
<div class="col-12">
<button class="btn btn-ptmagic btn-block text-uppercase waves-effect waves-light" type="submit">
Save password
</button>
</div>
</div>
</form>
</div>
</div>
@section Scripts {
}