Skip to content
Snippets Groups Projects
Commit 087fd757 authored by kristoffer-oyen's avatar kristoffer-oyen
Browse files

Added pattern for password field

parent 9ee77edb
Branches
No related tags found
No related merge requests found
Pipeline #72063 passed
<!DOCTYPE html> <!DOCTYPE html>
<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.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>login</title> <title>login</title>
<link rel="stylesheet" href="css/index.css" /> <link rel="stylesheet" href="css/index.css" />
<link rel="stylesheet" href="css/app.css" /> <link rel="stylesheet" href="css/app.css" />
...@@ -14,8 +14,21 @@ ...@@ -14,8 +14,21 @@
<h1 class="header">Meldings-applikasjon</h1> <h1 class="header">Meldings-applikasjon</h1>
</div> </div>
<form class="main" id="loginForm" onsubmit="login(event)"> <form class="main" id="loginForm" onsubmit="login(event)">
<input class="loginInput" placeholder="Brukernavn..." id="username" required pattern="([\w]+)"><br /> <input
<input type="password" placeholder="Passord..." class="loginInput" id="password"><br /> class="loginInput"
placeholder="Brukernavn..."
id="username"
required
pattern="([\w]+)"
/><br />
<input
type="password"
placeholder="Passord..."
class="loginInput"
id="password"
required
pattern="([\w]+)"
/><br />
<button class="loginBtn">Logg inn</button> <button class="loginBtn">Logg inn</button>
</form> </form>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment