Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MegumiKim committed Oct 4, 2023
2 parents 51fde6c + 3e24b00 commit 1ba5324
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
/>
<title>Howdy | Log in</title>
<link rel="stylesheet" href="/dist/css/styles.css" />
<<<<<<< HEAD
<script src="../src/js/index.mjs" type="module"></script>
<script
=======
<script src="./src/js/index.mjs" type="module"></script>
<!-- <script
>>>>>>> 3e24b00d5ade7e267ce4d7e3b2de39caddf8e5b9
defer
src="/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
></script>
Expand Down
9 changes: 9 additions & 0 deletions sign-up/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
content="Welcome to Howdy. Please provide long in details."
/>
<title>Howdy | Log in</title>
<<<<<<< HEAD
<link rel="stylesheet" href="../dist/css/styles.css" />
<script src="./../src/js/index.mjs" type="module"></script>
=======
<link rel="stylesheet" href="./../dist/css/styles.css" />
<script src="../src/js/index.mjs" type="module"></script>
>>>>>>> 3e24b00d5ade7e267ce4d7e3b2de39caddf8e5b9
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
Expand Down Expand Up @@ -106,7 +111,11 @@ <h4 class="mb-3 text-center">Sign up</h4>
></div>
<hr class="my-4" />
<p class="w-100 text-center">
<<<<<<< HEAD
Already have have an account? <a href="/">log in</a>
=======
Already have have an account? <a href="./">log in</a>
>>>>>>> 3e24b00d5ade7e267ce4d7e3b2de39caddf8e5b9
</p>
</form>
</div>
Expand Down
9 changes: 9 additions & 0 deletions src/js/api/profiles/loginUser.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { BASE_URL } from "./../constants.mjs";
<<<<<<< HEAD
import * as storages from "../../storage/index.mjs";
=======
import * as storages from "./../../storage/index.mjs";
>>>>>>> 3e24b00d5ade7e267ce4d7e3b2de39caddf8e5b9

const registerURL = `${BASE_URL}/auth/login`;
const userAlert = document.querySelector("#user-alert");
Expand All @@ -22,7 +26,12 @@ export async function loginUser(options) {
if (accessToken) {
storages.locals.save("accessToken", accessToken);
storages.locals.save("otherDetails", otherDetails);
<<<<<<< HEAD
window.location.assign("./posts/index.html");
=======
window.location.href("./posts/");
// window.location.assign("./posts/");
>>>>>>> 3e24b00d5ade7e267ce4d7e3b2de39caddf8e5b9
} else {
const { errors } = json;
errors.forEach(({ message }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/js/storage/index.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as locals from "./local.mjs";
export * as sessions from "./session.mjs";
export * as locals from "../local.mjs";
export * as sessions from "../session.mjs";

0 comments on commit 1ba5324

Please sign in to comment.