Merge branch 'user-repo' into develop
This commit is contained in:
commit
fa91d5f670
10 changed files with 166 additions and 109 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import {parseCookies} from "nookies";
|
import type {Authentication} from "./authentication";
|
||||||
|
import {createErrorToast} from "./customToasts";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Capitalises first letter of string.
|
* Capitalises first letter of string.
|
||||||
|
|
@ -22,13 +23,14 @@ export async function bearerFetch(endpoint: string, jwt: string, baseUrl: string
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function handleErrorsFromResponseWithToast(response: Authentication) {
|
||||||
const getJwtCookie = () => {
|
if (response.error != null) {
|
||||||
// @ts-ignore
|
if (response.error.details.errors) {
|
||||||
return parseCookies("/").jwt;
|
for (const error of response.error.details.errors) {
|
||||||
};
|
createErrorToast(error.message);
|
||||||
|
}
|
||||||
/**
|
} else {
|
||||||
* JWT Cookie
|
createErrorToast(response.error.message);
|
||||||
*/
|
}
|
||||||
export const jwt: string = getJwtCookie();
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type {User} from "../../../models/user";
|
import type {User} from "./user";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Login Auth.
|
* User Login Auth.
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type {Note} from "./types";
|
import type {Note} from "../../types";
|
||||||
|
|
||||||
export interface NoteRepository {
|
export interface NoteRepository {
|
||||||
getNotes(): Promise<Note[]>;
|
getNotes(): Promise<Note[]>;
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type {Note} from "./types";
|
import type {Note} from "../../types";
|
||||||
import {parseCookies} from "nookies";
|
import {parseCookies} from "nookies";
|
||||||
import type {NoteRepository} from "./NoteRepository";
|
import type {NoteRepository} from "./NoteRepository";
|
||||||
import {currentNoteId} from "../stores";
|
import {currentNoteId} from "../stores";
|
||||||
|
|
@ -78,8 +78,8 @@ export class StrapiNoteRepository implements NoteRepository {
|
||||||
return "bearer TOKEN"
|
return "bearer TOKEN"
|
||||||
}
|
}
|
||||||
|
|
||||||
private static getAuthorizationHeader() {
|
static getAuthorizationHeader() {
|
||||||
const jwt = parseCookies().jwt;
|
const jwt = parseCookies('/').jwt;
|
||||||
return `bearer ${jwt}`
|
return `bearer ${jwt}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
93
frontend/svelte/src/models/repos/user/StrapiUserRepo.ts
Normal file
93
frontend/svelte/src/models/repos/user/StrapiUserRepo.ts
Normal file
|
|
@ -0,0 +1,93 @@
|
||||||
|
import type {UserRepository} from "./UserRepository";
|
||||||
|
import type {Authentication} from "../../authentication";
|
||||||
|
import type {HttpMethod} from "@sveltejs/kit/types/private";
|
||||||
|
import {StrapiNoteRepository} from "../note/StrapiNoteRepository";
|
||||||
|
import {error} from "@sveltejs/kit";
|
||||||
|
import {User} from "../../user";
|
||||||
|
|
||||||
|
export class StrapiUserRepo implements UserRepository {
|
||||||
|
private static instance: StrapiUserRepo;
|
||||||
|
|
||||||
|
public static getInstance(verification: boolean = true): StrapiUserRepo {
|
||||||
|
if (this.instance === undefined || this.instance === null) {
|
||||||
|
this.instance = new StrapiUserRepo();
|
||||||
|
this.instance.verify().then(() => {
|
||||||
|
if (verification && !this.instance.verified) {
|
||||||
|
window.location.href = "/login";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return this.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
private verified: boolean = false;
|
||||||
|
|
||||||
|
private constructor() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private static api: string = "http://localhost:1337/api"
|
||||||
|
|
||||||
|
private static apiUserEndpoint: string = StrapiUserRepo.api + "/auth/local"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies the current users jwt.
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
private async verify() {
|
||||||
|
this.verified = false;
|
||||||
|
let result = await this.getMe();
|
||||||
|
if (!result.error) {
|
||||||
|
this.verified = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async getMe(): Promise<Authentication> {
|
||||||
|
const response = await StrapiUserRepo.fetchStrapi("/me", "GET", null, true, "/users")
|
||||||
|
return await response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
async registerUser(email: string, username: string, password: string): Promise<Authentication> {
|
||||||
|
const payload = {
|
||||||
|
email: email,
|
||||||
|
password: password,
|
||||||
|
username: username
|
||||||
|
};
|
||||||
|
const response = await StrapiUserRepo.fetchStrapi("/register", "POST", payload, false);
|
||||||
|
return await response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
async loginUser(identifier: string, password: string): Promise<Authentication> {
|
||||||
|
const payload = {
|
||||||
|
identifier: identifier,
|
||||||
|
password: password
|
||||||
|
};
|
||||||
|
const response = await StrapiUserRepo.fetchStrapi("/", "POST", payload, false);
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static async fetchStrapi(path: string, method: HttpMethod, body: any | null = null, authorization: boolean = true, customPath: any = null): Promise<Response> {
|
||||||
|
let requestInit: RequestInit = {
|
||||||
|
method: method,
|
||||||
|
};
|
||||||
|
if (authorization && body) {
|
||||||
|
requestInit["headers"] = {
|
||||||
|
authorization: StrapiNoteRepository.getAuthorizationHeader() ?? '',
|
||||||
|
'Accept': 'application/json',
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
|
} else if (authorization) {
|
||||||
|
requestInit["headers"] = {
|
||||||
|
authorization: StrapiNoteRepository.getAuthorizationHeader() ?? '',
|
||||||
|
}
|
||||||
|
} else if (body) {
|
||||||
|
requestInit["headers"] = {
|
||||||
|
'Accept': 'application/json',
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (body) {
|
||||||
|
requestInit["body"] = JSON.stringify(body)
|
||||||
|
}
|
||||||
|
return await fetch((customPath) ? (this.api + customPath + path) : StrapiUserRepo.apiUserEndpoint + path, requestInit);
|
||||||
|
}
|
||||||
|
}
|
||||||
19
frontend/svelte/src/models/repos/user/UserRepository.ts
Normal file
19
frontend/svelte/src/models/repos/user/UserRepository.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
import type {Authentication} from "../../authentication";
|
||||||
|
|
||||||
|
export interface UserRepository {
|
||||||
|
/**
|
||||||
|
* Registers a new user.
|
||||||
|
* @param email
|
||||||
|
* @param username
|
||||||
|
* @param password
|
||||||
|
*/
|
||||||
|
registerUser(email: string, username: string, password: string): Promise<Authentication>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the current user.
|
||||||
|
* @param jwt
|
||||||
|
*/
|
||||||
|
getMe(jwt: string): Promise<Authentication>;
|
||||||
|
|
||||||
|
loginUser(identifier: string, password: string): Promise<Authentication>;
|
||||||
|
}
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type {Note} from "../models/types";
|
import type {Note} from "../models/types";
|
||||||
import {onMount} from "svelte";
|
import {onMount} from "svelte";
|
||||||
import {StrapiNoteRepository} from "../models/StrapiNoteRepository";
|
import {StrapiNoteRepository} from "../models/repos/note/StrapiNoteRepository";
|
||||||
|
import {StrapiUserRepo} from "../models/repos/user/StrapiUserRepo";
|
||||||
|
|
||||||
const noteRepo: StrapiNoteRepository = StrapiNoteRepository.getInstance();
|
const noteRepo: StrapiNoteRepository = StrapiNoteRepository.getInstance();
|
||||||
let notes: Note[];
|
let notes: Note[];
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
StrapiUserRepo.getInstance();
|
||||||
notes = await noteRepo.getNotes();
|
notes = await noteRepo.getNotes();
|
||||||
notes.forEach(note => {
|
notes.forEach(note => {
|
||||||
note.lastViewed = new Date(note.lastViewed);
|
note.lastViewed = new Date(note.lastViewed);
|
||||||
|
|
@ -84,11 +86,11 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||||
<title>PomeloNote | Home</title>
|
<title>PomeloNote | Home</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css" rel="stylesheet">
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
|
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css"
|
||||||
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
|
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,6 @@
|
||||||
import {bearerFetch, jwt} from "../models/PomeloUtils";
|
import {StrapiUserRepo} from "../models/repos/user/StrapiUserRepo";
|
||||||
|
|
||||||
/** @type {import('./$types').PageLoad} */
|
/** @type {import('./$types').PageLoad} */
|
||||||
export async function load() {
|
export async function load() {
|
||||||
let invalid = !jwt;
|
// StrapiUserRepo.getInstance();
|
||||||
|
|
||||||
if (!invalid) {
|
|
||||||
const request = await bearerFetch("/users/me", jwt);
|
|
||||||
const response = await request.json();
|
|
||||||
|
|
||||||
invalid = "error" in response;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (invalid) {
|
|
||||||
if (typeof window !== 'undefined') {
|
|
||||||
// @ts-ignore
|
|
||||||
window.location = "/login";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {setCookie} from "nookies";
|
import {setCookie} from "nookies";
|
||||||
import type {Authentication} from "./models/authentication";
|
|
||||||
import {SvelteToast} from '@zerodevx/svelte-toast'
|
import {SvelteToast} from '@zerodevx/svelte-toast'
|
||||||
import {createErrorToast} from "../../models/customToasts";
|
|
||||||
import logo from "../../resources/images/logo2.svg";
|
import logo from "../../resources/images/logo2.svg";
|
||||||
|
import {handleErrorsFromResponseWithToast} from "../../models/PomeloUtils";
|
||||||
|
import {StrapiUserRepo} from "../../models/repos/user/StrapiUserRepo";
|
||||||
|
|
||||||
let user: string;
|
let user: string;
|
||||||
let password: string;
|
let password: string;
|
||||||
|
|
@ -14,31 +14,12 @@
|
||||||
* Handles the button click.
|
* Handles the button click.
|
||||||
*/
|
*/
|
||||||
async function handleSubmit() {
|
async function handleSubmit() {
|
||||||
const endpoint = "http://localhost:1337/api/auth/local";
|
const userRepo: StrapiUserRepo = StrapiUserRepo.getInstance(false);
|
||||||
const payload = {
|
|
||||||
identifier: user,
|
|
||||||
password: password
|
|
||||||
};
|
|
||||||
|
|
||||||
const login = await fetch(endpoint, {
|
const response = await userRepo.loginUser(user, password);
|
||||||
method: 'post',
|
|
||||||
headers: {
|
|
||||||
'Accept': 'application/json',
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: JSON.stringify(payload)
|
|
||||||
})
|
|
||||||
|
|
||||||
const response: Authentication = await login.json();
|
|
||||||
|
|
||||||
if (response.error != null) {
|
if (response.error != null) {
|
||||||
if (response.error.details.errors){
|
handleErrorsFromResponseWithToast(response);
|
||||||
for (const error of response.error.details.errors) {
|
|
||||||
createErrorToast(error.message);
|
|
||||||
}
|
|
||||||
} else{
|
|
||||||
createErrorToast(response.error.message);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (rememberMe) {
|
if (rememberMe) {
|
||||||
setCookie(null, 'jwt', response.jwt, {
|
setCookie(null, 'jwt', response.jwt, {
|
||||||
|
|
@ -56,34 +37,34 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||||
<title>PomeloNote | Login</title>
|
<title>PomeloNote | Login</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
|
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css"
|
||||||
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
|
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<main class="form-signin w-100 m-auto">
|
<main class="form-signin w-100 m-auto">
|
||||||
|
|
||||||
<img class="img-fluid" src="{logo}" alt="Logo">
|
<img alt="Logo" class="img-fluid" src="{logo}">
|
||||||
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
|
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
|
||||||
|
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input type="text" class="form-control" id="floatingInput" placeholder="name@example.com" bind:value={user}>
|
<input bind:value={user} class="form-control" id="floatingInput" placeholder="name@example.com" type="text">
|
||||||
<label for="floatingInput">Email address or username</label>
|
<label for="floatingInput">Email address or username</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input type="password" class="form-control" id="floatingPassword" placeholder="Password" bind:value={password}>
|
<input bind:value={password} class="form-control" id="floatingPassword" placeholder="Password" type="password">
|
||||||
<label for="floatingPassword">Password</label>
|
<label for="floatingPassword">Password</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="checkbox mb-3">
|
<div class="checkbox mb-3">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" value="rememberMe" bind:checked={rememberMe}> Remember me
|
<input bind:checked={rememberMe} type="checkbox" value="rememberMe"> Remember me
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<button class="w-100 btn btn-lg btn-primary" on:click={handleSubmit}>Sign in</button>
|
<button class="w-100 btn btn-lg btn-primary" on:click={handleSubmit}>Sign in</button>
|
||||||
<a href="/register" class="opacity-75 d-flex justify-content-center text-center fs-6">No user yet? Register.</a>
|
<a class="opacity-75 d-flex justify-content-center text-center fs-6" href="/register">No user yet? Register.</a>
|
||||||
<p class="mt-5 mb-3 text-muted">©2022</p>
|
<p class="mt-5 mb-3 text-muted">©2022</p>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
@ -94,10 +75,4 @@
|
||||||
<style>
|
<style>
|
||||||
@import "../../userInput.css";
|
@import "../../userInput.css";
|
||||||
@import "../../customBootstrap.css";
|
@import "../../customBootstrap.css";
|
||||||
|
|
||||||
.form-signin input[type="email"] {
|
|
||||||
margin-bottom: -1px !important;
|
|
||||||
border-bottom-right-radius: 0 !important;
|
|
||||||
border-bottom-left-radius: 0 !important;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import logo from "../../resources/images/logo2.svg";
|
import logo from "../../resources/images/logo2.svg";
|
||||||
import {SvelteToast} from "@zerodevx/svelte-toast";
|
import {SvelteToast} from "@zerodevx/svelte-toast";
|
||||||
import type {Authentication} from "../login/models/authentication";
|
import {StrapiUserRepo} from "../../models/repos/user/StrapiUserRepo";
|
||||||
import {createErrorToast} from "../../models/customToasts";
|
import {handleErrorsFromResponseWithToast} from "../../models/PomeloUtils";
|
||||||
|
|
||||||
let user: string;
|
let user: string;
|
||||||
let password: string;
|
let password: string;
|
||||||
|
|
@ -13,32 +13,12 @@
|
||||||
* Handles the button click.
|
* Handles the button click.
|
||||||
*/
|
*/
|
||||||
async function handleSubmit() {
|
async function handleSubmit() {
|
||||||
const endpoint = "http://localhost:1337/api/auth/local/register";
|
const userRepo: StrapiUserRepo = StrapiUserRepo.getInstance(false);
|
||||||
const payload = {
|
|
||||||
email: email,
|
|
||||||
password: password,
|
|
||||||
username: user
|
|
||||||
};
|
|
||||||
|
|
||||||
const login = await fetch(endpoint, {
|
const response = await userRepo.registerUser(email, user, password);
|
||||||
method: 'post',
|
|
||||||
headers: {
|
|
||||||
'Accept': 'application/json',
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: JSON.stringify(payload)
|
|
||||||
})
|
|
||||||
|
|
||||||
const response: Authentication = await login.json();
|
|
||||||
|
|
||||||
if (response.error != null) {
|
if (response.error != null) {
|
||||||
if (response.error.details.errors) {
|
handleErrorsFromResponseWithToast(response);
|
||||||
for (const error of response.error.details.errors) {
|
|
||||||
createErrorToast(error.message);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
createErrorToast(response.error.message);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
window.location = "/login";
|
window.location = "/login";
|
||||||
}
|
}
|
||||||
|
|
@ -49,29 +29,29 @@
|
||||||
lang="en">
|
lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||||
<title>PomeloNote | Register</title>
|
<title>PomeloNote | Register</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
|
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css"
|
||||||
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
|
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<main class="form-signin w-100 m-auto">
|
<main class="form-signin w-100 m-auto">
|
||||||
|
|
||||||
<img class="img-fluid" src="{logo}" alt="Logo">
|
<img alt="Logo" class="img-fluid" src="{logo}">
|
||||||
<h1 class="h3 mb-3 fw-normal">Register a new user</h1>
|
<h1 class="h3 mb-3 fw-normal">Register a new user</h1>
|
||||||
|
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input type="text" class="form-control" id="floatingUsr" placeholder="exampleUsername" bind:value={user}>
|
<input bind:value={user} class="form-control" id="floatingUsr" placeholder="exampleUsername" type="text">
|
||||||
<label for="floatingUsr">Username</label>
|
<label for="floatingUsr">Username</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input type="email" class="form-control" id="floatingInput" placeholder="name@example.com" bind:value={email}>
|
<input bind:value={email} class="form-control" id="floatingInput" placeholder="name@example.com" type="email">
|
||||||
<label for="floatingInput">Email address</label>
|
<label for="floatingInput">Email address</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input type="password" class="form-control" id="floatingPassword" placeholder="Password" bind:value={password}>
|
<input bind:value={password} class="form-control" id="floatingPassword" placeholder="Password" type="password">
|
||||||
<label for="floatingPassword">Password</label>
|
<label for="floatingPassword">Password</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -79,7 +59,7 @@
|
||||||
Register user
|
Register user
|
||||||
{#if user}: {user} {/if}
|
{#if user}: {user} {/if}
|
||||||
</button>
|
</button>
|
||||||
<a href="/login" class="opacity-75 d-flex justify-content-center text-center fs-6">Already registered? Login.</a>
|
<a class="opacity-75 d-flex justify-content-center text-center fs-6" href="/login">Already registered? Login.</a>
|
||||||
<p class="mt-5 mb-3 text-muted">©2022</p>
|
<p class="mt-5 mb-3 text-muted">©2022</p>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue