Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProjectClient_Y1S1_TramshedTech_15.git
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Beaumont Mogridge
ProjectClient_Y1S1_TramshedTech_15.git
Commits
47b8f6c5
Commit
47b8f6c5
authored
3 years ago
by
Rhiannon Austin
Browse files
Options
Downloads
Patches
Plain Diff
Issue resloved
parent
24ab791a
No related branches found
Branches containing commit
No related tags found
1 merge request
!18
Login
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
database.db
+0
-0
0 additions, 0 deletions
database.db
main.py
+3
-3
3 additions, 3 deletions
main.py
with
3 additions
and
3 deletions
database.db
+
0
−
0
View file @
47b8f6c5
No preview for this file type
This diff is collapsed.
Click to expand it.
main.py
+
3
−
3
View file @
47b8f6c5
from
flask
import
Flask
,
request
,
render_template
from
flask
import
Flask
,
request
,
render_template
,
redirect
import
database
import
json
import
re
...
...
@@ -11,14 +11,14 @@ def home():
workspaces
=
database
.
get_workspaces
()
return
render_template
(
"
home.html
"
,
workspaces
=
workspaces
)
@app.route
(
'
/login
'
,
methods
=
[
"
GET
"
])
@app.route
(
'
/login
'
,
methods
=
[
"
GET
"
,
"
POST
"
])
def
login
():
username
=
request
.
form
.
get
(
'
username
'
)
if
username
==
"
admin
"
:
return
redirect
(
"
/
"
)
else
:
message
=
"
Wrong Username
"
return
re
direct
(
"
/login.html
"
)
return
re
nder_template
(
"
/login.html
"
)
@app.route
(
"
/about
"
,
methods
=
[
"
GET
"
])
def
about
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment