From 8d3b8fd8aa9603f5377f1b37963190ac2c01e9dd Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Fri, 31 Dec 2021 11:38:06 +0100
Subject: npm run format

---
 web/pw-server/src/routes/register.svelte | 54 ++++++++++++++++----------------
 1 file changed, 27 insertions(+), 27 deletions(-)

(limited to 'web/pw-server/src/routes/register.svelte')

diff --git a/web/pw-server/src/routes/register.svelte b/web/pw-server/src/routes/register.svelte
index a21cf65..6344399 100644
--- a/web/pw-server/src/routes/register.svelte
+++ b/web/pw-server/src/routes/register.svelte
@@ -1,38 +1,38 @@
 <script lang="ts">
-	let username: string | undefined;
-	let password: string | undefined;
+  let username: string | undefined;
+  let password: string | undefined;
 
-	const onSubmit = () => {
-		if (username === undefined || username.trim() === '') {
-			return;
-		}
+  const onSubmit = () => {
+    if (username === undefined || username.trim() === "") {
+      return;
+    }
 
-    if (password === undefined || password.trim() === '') {
+    if (password === undefined || password.trim() === "") {
       return;
     }
 
-		fetch('/api/register', {
-			method: 'POST',
-			headers: {
-				'Content-Type': 'application/json'
-			},
-			body: JSON.stringify({
-				username,
-				password
-			})
-		})
-			.then((resp) => resp.json())
-			.then((data) => {
-				console.log(data);
-			});
-	};
+    fetch("/api/register", {
+      method: "POST",
+      headers: {
+        "Content-Type": "application/json",
+      },
+      body: JSON.stringify({
+        username,
+        password,
+      }),
+    })
+      .then((resp) => resp.json())
+      .then((data) => {
+        console.log(data);
+      });
+  };
 </script>
 
 <h1>Register</h1>
 <form on:submit|preventDefault={onSubmit}>
-	<label for="username">Username</label>
-	<input name="username" bind:value={username} />
-	<label for="password">Password</label>
-	<input type="password" name="password" bind:value={password} />
-	<button type="submit">Register</button>
+  <label for="username">Username</label>
+  <input name="username" bind:value={username} />
+  <label for="password">Password</label>
+  <input type="password" name="password" bind:value={password} />
+  <button type="submit">Register</button>
 </form>
-- 
cgit v1.2.3

