27 lines
823 B
Plaintext
27 lines
823 B
Plaintext
@page "/FinishRegistration"
|
|
@using Authinator.Backend.Utils
|
|
@using Authinator.Backend.Database
|
|
@using Authinator.Backend.Database.Tables
|
|
@using System.Web
|
|
@model UserRegisterNoTokenModel
|
|
@{
|
|
ViewData["Title"] = "Finish registration";
|
|
}
|
|
|
|
@if (Globals.NoActiveAdminUser) {
|
|
<div class="alert alert-warning">
|
|
No active admin user found, please check the logs for the activation token!
|
|
</div>
|
|
}
|
|
else {
|
|
<h1 class="display-6">Finish registration</h1>
|
|
}
|
|
|
|
<form method="POST" class="border rounded px-3 py-3">
|
|
<div class="mb-3">
|
|
<label for="token" class="form-label">Registration token</label>
|
|
<input class="form-control" type="text" id="token" name="token" placeholder="register:0:aG1hYw==" required/>
|
|
</div>
|
|
<button class="btn btn-primary" type="submit" name="action" value="validate_token">Submit</button>
|
|
</form>
|