feat: custom challenges
This commit is contained in:
@@ -3,24 +3,28 @@
|
||||
.sn-component
|
||||
.sk-panel
|
||||
.sk-panel-header
|
||||
.sk-panel-header-title {{ctrl.title}}
|
||||
.sk-panel-header-title {{ctrl.modalTitle}}
|
||||
.sk-panel-content
|
||||
.sk-panel-section
|
||||
div(ng-repeat="type in ctrl.state.types")
|
||||
.sk-p.sk-panel-row.centered.prompt
|
||||
strong {{ctrl.promptForChallenge(type)}}
|
||||
.sk-p.sk-panel-row.centered.prompt
|
||||
strong {{ctrl.state.title}}
|
||||
.sk-p.sk-panel-row.centered.subprompt(ng-if='ctrl.state.subtitle')
|
||||
| {{ctrl.state.subtitle}}
|
||||
.sk-panel-section
|
||||
div(ng-repeat="prompt in ctrl.state.prompts track by prompt.id")
|
||||
.sk-panel-row
|
||||
input.sk-input.contrast(
|
||||
ng-model="ctrl.state.values[type].value"
|
||||
ng-model="ctrl.state.values[prompt.id].value"
|
||||
should-focus="$index == 0"
|
||||
sn-autofocus="true"
|
||||
sn-enter="ctrl.submit()" ,
|
||||
ng-change="ctrl.onTextValueChange(type)"
|
||||
type="password"
|
||||
ng-change="ctrl.onTextValueChange(prompt)"
|
||||
ng-attr-type="{{prompt.secureTextEntry ? 'password' : 'text'}}",
|
||||
ng-attr-placeholder="{{prompt.placeholder}}"
|
||||
)
|
||||
.sk-panel-row.centered
|
||||
label.sk-label.danger(
|
||||
ng-if="ctrl.state.values[type].invalid"
|
||||
ng-if="ctrl.state.values[prompt.id].invalid"
|
||||
) Invalid authentication. Please try again.
|
||||
.sk-panel-footer.extra-padding
|
||||
.sk-button.info.big.block.bold(
|
||||
|
||||
Reference in New Issue
Block a user