File tree Expand file tree Collapse file tree 4 files changed +30
-2
lines changed
Private/Fusion/Presentation Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 18
18
' Sandstorm.NeosTwoFactorAuthentication ' :
19
19
- ' *'
20
20
21
+ backendLoginForm :
22
+ stylesheets :
23
+ ' Sandstorm.NeosTwoFactorAuthentication:AdditionalStyles ' : ' resource://Sandstorm.NeosTwoFactorAuthentication/Public/Styles/Login.css'
24
+
21
25
Flow :
22
26
http :
23
27
middlewares :
Original file line number Diff line number Diff line change
1
+ prototype(Sandstorm.NeosTwoFactorAuthentication:Component.LoginFlashMessages) < prototype(Neos.Fusion:Component) {
2
+ flashMessages = ${[]}
3
+
4
+ renderer = afx`
5
+ <Neos.Fusion:Loop items={props.flashMessages} itemName="flashMessage">
6
+ <div class={'neos-two-factor-flashmessage neos-two-factor-flashmessage-' + String.toLowerCase(flashMessage.severity)}>{flashMessage}</div>
7
+ </Neos.Fusion:Loop>
8
+ `
9
+ }
Original file line number Diff line number Diff line change @@ -75,10 +75,9 @@ prototype(Sandstorm.NeosTwoFactorAuthentication:Page.SetupSecondFactorPage) < pr
75
75
</h1>
76
76
77
77
<div class="neos-login-body neos">
78
- <Sandstorm.NeosTwoFactorAuthentication:Component.FlashMessages flashMessages={props.flashMessages} />
78
+ <Sandstorm.NeosTwoFactorAuthentication:Component.LoginFlashMessages flashMessages={props.flashMessages} />
79
79
<Neos.Fusion.Form:Form form.target.action="setupSecondFactor">
80
80
<Neos.Fusion.Form:Hidden field.name="secret" field.value={secret}/>
81
-
82
81
<div class="neos-control-group">
83
82
<img src={qrCode} style="width: 100%; max-width: 400px"/>
84
83
</div>
Original file line number Diff line number Diff line change
1
+ .neos-two-factor-flashmessage {
2
+ font-size : 13px ;
3
+ line-height : 1.4 ;
4
+ padding : 8px ;
5
+ color : # fff ;
6
+ text-align : center;
7
+ margin-bottom : 10px ;
8
+ }
9
+
10
+ .neos-two-factor-flashmessage-warning {
11
+ background-color : # F89406 ;
12
+ }
13
+
14
+ .neos-two-factor-flashmessage-info {
15
+ background-color : # 5bc0de ;
16
+ }
You can’t perform that action at this time.
0 commit comments