Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luca (strifel)
uffd
Commits
fcb6960e
Commit
fcb6960e
authored
3 years ago
by
davidc
Committed by
Julian
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
LOGIN_BANNER config to display a banner above the login form
parent
918a24a2
Branches
Branches containing commit
Tags
release/calendar/4.7.13
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
uffd/default_config.cfg
+3
-0
3 additions, 0 deletions
uffd/default_config.cfg
uffd/session/templates/session/login.html
+3
-0
3 additions, 0 deletions
uffd/session/templates/session/login.html
with
6 additions
and
0 deletions
uffd/default_config.cfg
+
3
−
0
View file @
fcb6960e
...
...
@@ -109,6 +109,9 @@ SERVICES_BANNER_PUBLIC=True
# Enable the service overview page for users who are not logged in
SERVICES_PUBLIC
=
True
# An optional banner that will be displayed above the login form
#LOGIN_BANNER='Always check the URL. Never enter your SSO password on any other site.'
BRANDING_LOGO_URL
=
'/static/empty.png'
SITE_TITLE
=
'uffd'
...
...
This diff is collapsed.
Click to expand it.
uffd/session/templates/session/login.html
+
3
−
0
View file @
fcb6960e
...
...
@@ -5,6 +5,9 @@
<div
class=
"col-12"
>
<h2
class=
"text-center"
>
{{_("Login")}}
</h2>
</div>
{% if config['LOGIN_BANNER'] %}
<p>
{{ config['LOGIN_BANNER'] }}
</p>
{% endif %}
<div
class=
"form-group col-12"
>
<label
for=
"user-loginname"
>
{{_("Login Name")}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"user-loginname"
name=
"loginname"
required=
"required"
tabindex =
"1"
autofocus
>
...
...
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