fixed redirection bug

This commit is contained in:
Mystikfluu 2022-06-03 08:48:13 +02:00
parent eeb4bb85e0
commit cfbf54410c

View File

@ -19,18 +19,16 @@
<h1>Welcome Back!</h1> <h1>Welcome Back!</h1>
</header> </header>
<main> <main>
<form id="login_form" class="form_class" action="login" method="post"> <div class="info_div">
<div class="info_div"> <h2 id="user">User: USER</h2>
<h2 id="user">User: USER</h2> <br>
<br> <span class="bio">Bio: <input type="text" id="bio" disabled placeholder="wow such empty"></span>
<span class="bio">Bio: <input type="text" id="bio" disabled placeholder="wow such empty"></span> <button id="changeBio" onclick="bioChanger()">Change Bio</button>
<button id="changeBio" onclick="bioChanger()">Change Bio</button> <br>
<br> <button onclick="location.assign('/changePW')">Want to change your password?</button>
<button onclick="location.assign('/changePW')">Want to change your password?</button> <br>
<br> <button onclick="location.assign('/posts')">Want to chat with some cool fellas?</button>
<button onclick="location.assign('/posts')">Want to chat with some cool fellas?</button> </div>
</div>
</form>
</main> </main>
<script> <script>
async function setuser() { async function setuser() {