error correction, tests for err branches, rm get_token, get_token,

delete captcha
This commit is contained in:
realaravinth
2021-07-17 17:43:53 +05:30
parent 6f690734c5
commit 8f87efeeb3
14 changed files with 252 additions and 114 deletions

View File

@@ -24,20 +24,6 @@ const ROUTES = {
emailExists: '/api/v1/account/email/exists',
healthCheck: '/api/v1/meta/health',
buildDetails: '/api/v1/meta/build',
addDomain: '/api/v1/mcaptcha/domain/add',
challengeDomain: '/api/v1/mcaptcha/domain/domain/verify/challenge/get',
proveDomain: '/api/v1/mcaptcha/domain/domain/verify/challenge/prove',
deleteDomain: '/api/v1/mcaptcha/domain/delete',
addToken: '/api/v1/mcaptcha/domain/token/add',
updateTokenKey: '/api/v1/mcaptcha/domain/token/update',
getTokenKey: '/api/v1/mcaptcha/domain/token/get',
deleteToken: '/api/v1/mcaptcha/domain/token/delete',
addTokenLevels: '/api/v1/mcaptcha/domain/token/levels/add',
updateTokenLevels: '/api/v1/mcaptcha/domain/token/levels/update',
deleteTokenLevels: '/api/v1/mcaptcha/domain/token/levels/delete',
getTokenLevels: '/api/v1/mcaptcha/domain/token/levels/get',
getTokenDuration: '/api/v1/mcaptcha/domain/token/token/get',
updateTokenDuration: '/api/v1/mcaptcha/domain/token/token/update',
markNotificationRead: '/api/v1/notifications/read',
};

View File

@@ -25,7 +25,7 @@
/>
</label>
<label class="sitekey-form__label" for="duration">
<label class="sitekey-form__label" for="password">
Password
<input
class="sitekey-form__input"

View File

@@ -29,7 +29,7 @@
/>
</label>
<label class="sitekey-form__label" for="username"
<label class="sitekey-form__label" for="email"
>Email(optional)
<input
class="sitekey-form__input"
@@ -54,7 +54,7 @@
</label>
<label for="password" class="sitekey-form__label"
<label for="password" class="sitekey-form__label" for="password-check"
>Re-enter Password
<input
class="sitekey-form__input"

View File

@@ -0,0 +1,29 @@
<. include!("../../../components/headers/index.html"); .>
<div class="tmp-layout">
<main class="auth-main">
<div class="auth-inner-container">
<. include!("../../../auth/logo.html"); .>
<form
class="sitekey-form"
method="POST"
action="<.= crate::V1_API_ROUTES.auth.login .>"
id="form"
>
<h1 class="form__title">
Confirm Access
</h1>
<label class="sitekey-form__label" for="password">
Password
<input
class="sitekey-form__input"
type="password"
name="password"
id="password"
required
/>
<. include!("../../../components/showPassword/index.html"); .>
</label>
<input type="submit" class="sitekey-form__submit" value="Confirm access" />
</form>
</div>
<. include!("../../../components/footers.html"); .>