Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
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
TeDomum
Nextcloud
Commits
14317202
Commit
14317202
authored
8 years ago
by
Jan-Christoph Borchardt
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1098 from nextcloud/2fa-challenge-styling
2fa challenge styling
parents
4d85ffc2
78bb02d2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/css/styles.css
+8
-1
8 additions, 1 deletion
core/css/styles.css
core/templates/twofactorselectchallenge.php
+22
-22
22 additions, 22 deletions
core/templates/twofactorselectchallenge.php
core/templates/twofactorshowchallenge.php
+8
-9
8 additions, 9 deletions
core/templates/twofactorshowchallenge.php
with
38 additions
and
32 deletions
core/css/styles.css
+
8
−
1
View file @
14317202
...
@@ -32,10 +32,17 @@ body {
...
@@ -32,10 +32,17 @@ body {
background-size
:
cover
;
background-size
:
cover
;
}
}
.two-factor-header
{
text-align
:
center
;
}
.two-factor-provider
{
.two-factor-provider
{
text-align
:
center
;
text-align
:
center
;
width
:
100%
;
width
:
258px
!important
;
display
:
inline-block
;
display
:
inline-block
;
margin-bottom
:
0
!important
;
background-color
:
rgba
(
0
,
0
,
0
,
0.3
)
!important
;
border
:
none
!important
;
}
}
a
.two-factor-cancel
{
a
.two-factor-cancel
{
...
...
This diff is collapsed.
Click to expand it.
core/templates/twofactorselectchallenge.php
+
22
−
22
View file @
14317202
<
fieldset
class=
"warning"
>
<
div
class=
"warning"
>
<
legend><strong
>
<?php
p
(
$l
->
t
(
'Two-
step verif
ication'
))
?>
</
strong></legend
>
<
h2
class=
"two-factor-header"
>
<?php
p
(
$l
->
t
(
'Two-
factor authent
ication'
))
?>
</
h2
>
<p>
<?php
p
(
$l
->
t
(
'Enhanced security
has been
enabled for your account. Please authenticate using a second factor.'
))
?>
</p>
<p>
<?php
p
(
$l
->
t
(
'Enhanced security
is
enabled for your account. Please authenticate using a second factor.'
))
?>
</p>
</fieldset
>
<p
>
<fieldset
class=
"warning"
>
<ul
>
<ul
>
<?php
foreach
(
$_
[
'providers'
]
as
$provider
)
:
?
>
<?php
foreach
(
$_
[
'providers'
]
as
$provider
)
:
?
>
<li
>
<li>
<a
class=
"button two-factor-provider"
<a
class=
"two-factor-provider"
href=
"
<?php
p
(
\OC
::
$server
->
getURLGenerator
()
->
linkToRoute
(
'core.TwoFactorChallenge.showChallenge'
,
href=
"
<?php
p
(
\OC
::
$server
->
getURLGenerator
()
->
linkToRoute
(
'core.TwoFactorChallenge.showChallenge'
,
[
[
'challengeProviderId'
=>
$provider
->
getId
(),
'challengeProviderId'
=>
$provider
->
getId
()
,
'redirect_url'
=>
$_
[
'redirect_url'
]
,
'redirect_url'
=>
$_
[
'redirect_url'
],
]
]
))
?>
"
>
))
?>
"
>
<?php
p
(
$provider
->
getDescription
(
))
?>
<?php
p
(
$provider
->
getDescription
())
?
>
</a
>
</
a
>
</
li
>
</li
>
<?php
endforeach
;
?
>
<?php
endforeach
;
?
>
</ul
>
</
ul
>
</
p
>
</
fieldset
>
</
div
>
<a
class=
"two-factor-cancel"
<?php
print_unescaped
(
$_
[
'logout_attribute'
]);
?>
>
<?php
p
(
$l
->
t
(
'Cancel login'
))
?>
</a>
<a
class=
"two-factor-cancel"
<?php
print_unescaped
(
$_
[
'logout_attribute'
]);
?>
>
<?php
p
(
$l
->
t
(
'Cancel log
in'
))
?>
</a>
This diff is collapsed.
Click to expand it.
core/templates/twofactorshowchallenge.php
+
8
−
9
View file @
14317202
...
@@ -9,12 +9,11 @@ $provider = $_['provider'];
...
@@ -9,12 +9,11 @@ $provider = $_['provider'];
$template
=
$_
[
'template'
];
$template
=
$_
[
'template'
];
?>
?>
<fieldset
class=
"warning"
>
<div
class=
"warning"
>
<legend><strong>
<?php
p
(
$provider
->
getDisplayName
());
?>
</strong></legend>
<h2
class=
"two-factor-header"
>
<?php
p
(
$provider
->
getDisplayName
());
?>
</h2>
<p>
<?php
p
(
$l
->
t
(
'Please authenticate using the selected factor.'
))
?>
</p>
<?php
if
(
$error
)
:
?>
</fieldset>
<p><strong>
<?php
p
(
$l
->
t
(
'Error while validating your second factor'
));
?>
</strong></p>
<?php
if
(
$error
)
:
?>
<?php
endif
;
?>
<span
class=
"warning"
>
<?php
p
(
$l
->
t
(
'An error occured while verifying the token'
));
?>
</span>
<?php
print_unescaped
(
$template
);
?>
<?php
endif
;
?>
</div>
<?php
print_unescaped
(
$template
);
?>
<a
class=
"two-factor-cancel"
<?php
print_unescaped
(
$_
[
'logout_attribute'
]);
?>
>
<?php
p
(
$l
->
t
(
'Cancel log in'
))
?>
</a>
<a
class=
"two-factor-cancel"
<?php
print_unescaped
(
$_
[
'logout_attribute'
]);
?>
>
<?php
p
(
$l
->
t
(
'Cancel login'
))
?>
</a>
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