diff --git a/Lab01/app/.gitignore b/Lab01/app/.gitignore index ca1b494..60985bc 100644 --- a/Lab01/app/.gitignore +++ b/Lab01/app/.gitignore @@ -15,4 +15,4 @@ # Dependency directories (remove the comment below to include it) # vendor/ -sqlite.db \ No newline at end of file +sqlite.db diff --git a/Lab01/app/.idea/dataSources.xml b/Lab01/app/.idea/dataSources.xml index b9c0962..f6b9fb8 100644 --- a/Lab01/app/.idea/dataSources.xml +++ b/Lab01/app/.idea/dataSources.xml @@ -1,12 +1,20 @@ - + sqlite.xerial true org.sqlite.JDBC - jdbc:sqlite:C:\Users\FlorianHoss\Documents\GitHub\SWB6-ITSec\Lab01\app\sqlite.db + jdbc:sqlite:$PROJECT_DIR$/sqlite.db $ProjectFileDir$ + + + file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.36.0.3/sqlite-jdbc-3.36.0.3.jar + + + file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.34.0/sqlite-jdbc-3.34.0.jar + + \ No newline at end of file diff --git a/Lab01/app/templates/index.tmpl b/Lab01/app/templates/index.tmpl index 4b11a81..0d7ffa8 100644 --- a/Lab01/app/templates/index.tmpl +++ b/Lab01/app/templates/index.tmpl @@ -9,8 +9,10 @@ {{template "navbar" .}}
-
Welcome to the Super Save Store.
-
Login to continue.
+
Welcome to the {{ .title }}.
+
+ Login to continue. +
{{template "scripts" .}} @@ -43,17 +45,61 @@ - {{end}} +{{define "userForm"}} +
+
+ +
+ @ + +
+ Please choose a username. +
+
+
+
+ + +
+ Please choose a password. +
+
+
+ +
+
+{{end}} + {{define "scripts"}} + {{end}} diff --git a/Lab01/app/templates/login.tmpl b/Lab01/app/templates/login.tmpl index f51aa9d..fc3c21e 100644 --- a/Lab01/app/templates/login.tmpl +++ b/Lab01/app/templates/login.tmpl @@ -9,21 +9,22 @@ {{template "navbar" .}}
-
-
- - -
The username needs to be unique
-
-
- - -
The password needs to be different from the username
-
- -
+
{{ .title }}
+
+ {{template "userForm" .}} + Register instead
{{template "scripts" .}} + diff --git a/Lab01/app/templates/register.tmpl b/Lab01/app/templates/register.tmpl index 33cee7a..9bd440a 100644 --- a/Lab01/app/templates/register.tmpl +++ b/Lab01/app/templates/register.tmpl @@ -9,29 +9,16 @@ {{template "navbar" .}}
-
- - -
The username needs to be unique
-
-
- - -
The password needs to be different from the username
-
- +
{{ .title }}
+
+ {{template "userForm" .}} + Login instead
{{template "scripts" .}}