From: <de...@de...> - 2014-09-11 00:59:57
|
Author: PeterThoeny Date: 2014-09-10 19:54:07 -0500 (Wed, 10 Sep 2014) New Revision: 28058 Trac url: http://develop.twiki.org/trac/changeset/28058 Added: twiki/trunk/SmsTwoStepAuthContrib/templates/smstwosteperrorlogin.tmpl Log: Item7540: Initial version of SmsTwoStepAuthContrib for two-step authentication using SMS - add template used if user does not have sufficient credentials Added: twiki/trunk/SmsTwoStepAuthContrib/templates/smstwosteperrorlogin.tmpl =================================================================== --- twiki/trunk/SmsTwoStepAuthContrib/templates/smstwosteperrorlogin.tmpl (rev 0) +++ twiki/trunk/SmsTwoStepAuthContrib/templates/smstwosteperrorlogin.tmpl 2014-09-11 00:54:07 UTC (rev 28058) @@ -0,0 +1,50 @@ +%{ Login template of SmsTwoStepAuthContrib }% +%TMPL:INCLUDE{"twiki"}% + +%TMPL:DEF{"webaction"}%%MAKETEXT{"TWiki Two Factor Authentication"}%%TMPL:END% +%TMPL:DEF{"titleaction"}%%MAKETEXT{"(Insufficient credentials)"}% %TMPL:END% +%TMPL:DEF{"LOG_IN_BANNER"}%%TMPL:END% +%TMPL:DEF{"LOGGED_IN_BANNER"}%%TMPL:END% + +%TMPL:DEF{"pagetitle"}%%TMPL:END% + +%TMPL:DEF{"titleaction"}%%MAKETEXT{"([_1] login)" args="<nop>%WIKITOOLNAME%"}%%TMPL:END% + +%TMPL:DEF{"title"}%---++ %MAKETEXT{"Insufficient credentials for two-factor authentication"}% +%TMPL:END% + +%TMPL:DEF{"titlestep"}%<div class="twikiFormStep"> +%TMPL:P{"title"}% +%TMPL:P{"notestep"}% +%TMPL:P{"errorstep"}%</div><!-- /twikiFormStep-->%TMPL:END% + +%TMPL:DEF{"notestep"}%<div style="display:%IF{'defined ERROR or defined NOTE or defined BANNER' then='block' else='none'}%;"> +%IF{"defined NOTE AND $NOTE != ''" then='---+++ %NOTE%'}%</div>%TMPL:END% + +%TMPL:DEF{"errorstep"}%%IF{"defined BANNER AND $BANNER != ''" then='<div class="twikiNotification twikiAlert twikiUnvisited patternLoginNotification">%BANNER%%IF{"defined ERROR AND $ERROR != ''" then='<!--%TMPL:P{"error"}%-->'}%</div>'}%%TMPL:END% + +%TMPL:DEF{"error"}%%MAKETEXT{"Error: [_1]" args="%ERROR%"}%%TMPL:END% + +%TMPL:DEF{"accesscodefield"}%<input tabindex='1' type='text' class='twikiInputField twikiFocus' size='40' name='accesscode' value='' />%TMPL:END% + +%TMPL:DEF{"accesscodestep"}%<div class="twikiFormStep"> +%TMPL:P{"accesscodefieldhelp"}% +</div><!-- /twikiFormStep-->%TMPL:END% + +%TMPL:DEF{"accesscodenote"}%This <nop>%WIKITOOLNAME% requires two-step authentication. Unfortunately you do not show sufficient credentials to log in to this site. You need to specify a mobile number and a mobile carrier in your user profile topic. Once done you will get an SMS (text message) on your mobile phone with a one-time-use access code you can use to log in as the second step. %TMPL:END% + +%TMPL:DEF{"accesscodefieldhelp"}% <div class="twikiHelp">%TMPL:P{"accesscodenote"}%</div> %TMPL:END% + +%{ please keep the spaces between the div and the TMPL seealsonote, it allows TWiki to process the emailaddress }% +%TMPL:DEF{"seealsostep"}%<div class="twikiFormStep twikiGrayText twikiLast"> %TMPL:P{"seealsonote"}% </div><!-- /twikiFormStep-->%TMPL:END% + +%TMPL:DEF{"seealsonote"}% %MAKETEXT{"If you have any questions, please contact [_1]" args="%IF{"defined WIKIWEBMASTER AND $WIKIWEBMASTER != ''" then="%WIKIWEBMASTER%" else="your TWiki administrator"}%"}% %TMPL:END% + +%TMPL:DEF{"form"}%<div id="twikiLogin"> +<div class="twikiFormSteps">%TMPL:P{"titlestep"}% +%TMPL:P{"accesscodestep"}% +%TMPL:P{"seealsostep"}% +</div><!-- /twikiFormSteps--> +</div><!-- /twikiLogin-->%TMPL:END% + +%TMPL:DEF{"content"}%%TMPL:P{"form"}%%TMPL:END% |