Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
forgeid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Forge
apps
forgeid
Merge requests
!3
cri_auth: add support for password recovery
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
cri_auth: add support for password recovery
password_reset
into
develop
Overview
3
Commits
5
Pipelines
6
Changes
9
All threads resolved!
Hide all comments
Merged
cri_auth: add support for password recovery
Marin Hannache
requested to merge
password_reset
into
develop
Apr 15, 2019
Overview
3
Commits
5
Pipelines
6
Changes
9
All threads resolved!
Hide all comments
Closes
#1 (closed)
Edited
May 5, 2019
by
Marin Hannache
0
0
Merge request reports
Compare
develop
version 5
03fc09b7
May 5, 2019
version 4
ab1f4592
May 2, 2019
version 3
d3c327ae
May 1, 2019
version 2
ff8a67f7
May 1, 2019
version 1
d0d632e7
Apr 15, 2019
develop (base)
and
latest version
latest version
0d5abaad
5 commits,
May 5, 2019
version 5
03fc09b7
5 commits,
May 5, 2019
version 4
ab1f4592
3 commits,
May 2, 2019
version 3
d3c327ae
3 commits,
May 1, 2019
version 2
ff8a67f7
3 commits,
May 1, 2019
version 1
d0d632e7
1 commit,
Apr 15, 2019
9 files
+
230
−
69
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
cri_auth/templates/cri_auth/login.html
+
38
−
45
View file @ 0d5abaad
Edit in single-file editor
Open in Web IDE
{% extends "
base
.html" %}
{% extends "
_centered_form
.html" %}
{% load static crispy_forms_tags %}
{% block title %}{{block.super }} -
Log
in{% endblock %}
{% block title %}{{block.super }} -
Sign
in{% endblock %}
{% block content %}
<div
class=
"row justify-content-center align-items-center"
style=
"height: 80vh;"
>
<div
class=
"col"
style=
"max-width: 45rem;"
>
<div
class=
"card shadow-lg"
>
<div
class=
"card-body"
>
<div
class=
"row"
>
<div
class=
"col"
>
<h3
class=
"card-title text-center"
>
<i
class=
"fas fa-user"
></i>
Sign in
</h3>
<hr
/>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col"
>
{% if user.is_authenticated %}
<div
class=
"alert alert-warning"
>
<i
class=
"fas fa-exclamation-triangle"
></i>
You already signed in.
</div>
<a
href=
"{% url 'index' %}"
class=
"btn btn-info btn-block"
>
<i
class=
"fas fa-home"
></i>
Go back to the homepage
</a>
{% else %}
<form
method=
"POST"
class=
"form"
>
{% csrf_token %}
{{ form|crispy }}
<button
class=
"mt-4 btn btn-lg btn-primary btn-block"
type=
"submit"
>
<i
class=
"fas fa-sign-in-alt"
></i>
Sign in
</button>
<a
href=
"{% url "
social:begin
"
"
azuread-oauth2
"
%}"
class=
"btn btn-block btn-outline-secondary"
>
Sign in with Office 365
<sup><small><i
class=
"fas fa-external-link-alt"
></i></small></sup>
</a>
</form>
{% endif %}
</div>
</div>
</div>
</div>
{% block form_icon %}
<i
class=
"fas fa-user"
></i>
{% endblock %}
{% block form_title %}Sign in{% endblock %}
{% block form_content %}
{{ block.super }}
<div
class=
"row"
>
<div
class=
"col"
>
{% if user.is_authenticated %}
<div
class=
"alert alert-warning"
>
<i
class=
"fas fa-exclamation-triangle"
></i>
You already signed in.
</div>
<a
href=
"{% url 'index' %}"
class=
"btn btn-info btn-block"
>
<i
class=
"fas fa-home"
></i>
Go back to the homepage
</a>
{% else %}
<form
method=
"POST"
class=
"form"
>
{% csrf_token %}
{{ form|crispy }}
<button
class=
"mt-4 btn btn-lg btn-primary btn-block"
type=
"submit"
>
<i
class=
"fas fa-sign-in-alt"
></i>
Sign in
</button>
<nav
class=
"nav nav-pills nav-fill mt-2"
>
<a
href=
"{% url "
social:begin
"
"
azuread-oauth2
"
%}"
class=
"nav-item btn btn-outline-info mr-2"
>
Sign in with Office 365
<sup><small><i
class=
"fas fa-external-link-alt"
></i></small></sup>
</a>
<a
href=
"{% url 'password_reset' %}"
class=
"nav-item btn btn-outline-danger"
>
<i
class=
"far fa-life-ring"
></i>
Password recovery
</a>
</nav>
</form>
{% endif %}
</div>
</div>
{% endblock %}
Loading