Changes for page Sandbox
Last modified by Jip-jan Alunkel on May 29, 22:55
From version 18.1
edited by Jip-jan Alunkel
on May 08, 15:51
on May 08, 15:51
Change comment:
There is no comment for this version
To version 20.1
edited by Jip-jan Alunkel
on May 08, 18:23
on May 08, 18:23
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,45 +1,82 @@ 1 1 2 -{{html}} 3 -<!-- <iframe src="https://www.homeoworld.org/login/XWiki/XWikiLogin?xredirect=%2Fcases%2FCode%2F&loginLink=1"></iframe> --> 2 +{{velocity}} 3 +#if($xcontext.user != 'XWiki.XWikiGuest') 4 + #if($request.xredirect) 5 + $response.sendRedirect($request.xredirect) 6 + #else 7 +## $response.sendRedirect($xwiki.getURL($services.model.resolveDocument('', 'default', $doc.documentReference.extractReference('WIKI')))) 8 + #end 9 +#elseif($doc.fullName != 'XWiki.XWikiLogin') 10 + #set($qs = "$!{request.queryString}") 11 + #if(!$request.getParameter('xredirect')) 12 + #set($qs = "xredirect=$escapetool.url($doc.getURL('view'))&${qs}") 13 + #end 14 + $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs)) 15 +#else 4 4 5 -<form id="loginForm" action="/loginsubmit/XWiki/XWikiLogin" method="post" class="xform"> 6 -<div class="hidden"><input type="hidden" name="xredirect" value="/cases/Code/"> 7 - <input type="hidden" name="form_token" value="VcalxtbEafVXHN9hsAwjbQ"> 8 -</div> 9 - <div class="centered panel panel-default xwikimessage"> 10 - <div class="panel-heading"> 11 - <div class="panel-title">Inloggen</div> 12 - </div> 13 - <div class="panel-body"> 14 - <dl> 15 - <dt> 16 - <label for="j_username">Gebruikersnaam</label> 17 - <span class="xAdditional"><a href="/authenticate/wiki/xwiki/retrieveusername" tabindex="500">Gebruikersnaam vergeten?</a></span> 18 - </dt> 19 - <dd class="input-group"> 20 - <span class="input-group-addon"><span class="fa fa-user"></span></span> 21 - <input class="form-control" type="text" id="j_username" size="60" name="j_username" value="" tabindex="100"> 22 - </dd> 23 - <dt> 24 - <label for="j_password">Wachtwoord</label> 25 - <span class="xAdditional"><a href="/authenticate/wiki/xwiki/resetpassword" tabindex="600">Wachtwoord vergeten?</a></span> 26 - </dt> 27 - <dd class="input-group"> 28 - <span class="input-group-addon"><span class="fa fa-lock"></span></span> 29 - <input type="password" id="j_password" size="60" name="j_password" value="" tabindex="200"> 30 - </dd> 31 - <dt></dt> 32 - <dd> 33 - <label class="xHint" for="rememberme"> 34 - <input id="rememberme" type="checkbox" name="j_rememberme" value="true" tabindex="300"> Onthoud me op deze computer 35 - </label> 36 - </dd> 37 - <dt><input type="submit" class="btn btn-primary col-xs-12" value="Inloggen" tabindex="400"></dt> 38 -</dl> 39 - </div> </div></form> 17 +## Login page 18 +##template("startpage.vm") 19 +##<div class="main layoutsubsection"> 20 +##<div id="mainContentArea"> 21 +<form id="loginForm" action="$doc.getURL('loginsubmit')" method="post" class="xform"> 22 + <input type="hidden" name="xredirect" value="$!{escapetool.xml($request.xredirect)}"/> 23 + #if("$!request.srid" != '') 24 + <input type="hidden" name="srid" value="$!escapetool.xml($request.srid)"/> 25 + #end 26 + <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}"/> 40 40 41 -{{/html}} 28 + #xwikimessageboxstart($services.localization.render('login') '') 29 + #set($message = $xcontext.message) 30 + #if($message) 31 + <!-- previous login errors --> 32 + #error($services.localization.render($message)) 33 + #end 34 + #set($authFailureStrategyMessage = $services.security.authentication.getErrorMessage($request.j_username)) 35 + #if ("$!authFailureStrategyMessage" != '') 36 + #error($authFailureStrategyMessage) 37 + #end 38 + #set ($supplementaryForm = $services.security.authentication.getForm($request.j_username)) 39 + <label for="j_username">$services.localization.render('username')</label> 40 + #set ($forgotUsernameURL = $services.security.authentication.getAuthenticationURL('retrieveusername', $NULL)) 41 + #if("$!forgotUsernameURL" != "") 42 + <span class="xAdditional"><a href="$forgotUsernameURL" tabindex="500">$services.localization.render('xe.admin.forgotUsername.loginMessage')</a></span> 43 + #end 44 + <span class="input-group"> 45 + <span class="input-group-addon">$services.icon.renderHTML('user')</span> 46 + <input class="form-control" type="text" id="j_username" size="60" name="j_username" value="" tabindex="100"/> 47 + </span> 48 + <label for="j_password">$services.localization.render('password')</label> 49 + #set ($resetPasswordUrl = $services.security.authentication.getAuthenticationURL('resetpassword', $NULL)) 50 + #if("$!resetPasswordUrl" != '') 51 + <span class="xAdditional"><a href="$resetPasswordUrl" tabindex="600">$services.localization.render('xe.admin.passwordReset.loginMessage')</a></span> 52 + #end 53 + <span class="input-group"> 54 + <span class="input-group-addon">$services.icon.renderHTML('lock')</span> 55 + <input type="password" id="j_password" size="60" name="j_password" value="" tabindex="200"/> 56 + </span> 57 + <label class="xHint" for="rememberme"> 58 + <input id="rememberme" type="checkbox" name="j_rememberme" value="true" tabindex="300"/> $services.localization.render('remembermeonthiscomp') 59 + </label> 60 + #if ("$!supplementaryForm" != "") 61 + <div id="dedicated-auth-failures-field"> 62 + $supplementaryForm 63 + </div> 64 + #end 65 + <input type="submit" class="btn btn-primary col-xs-12" value="$services.localization.render('login')" tabindex="400"/> 66 + #xwikimessageboxend() 67 +</form> 42 42 69 +## Ensure that the username field of the login form has the focus to make it easy for users to log in quickly 70 +<script type="javascript"> 71 +//<![CDATA[ 72 + document.forms.loginForm.j_username.focus(); 73 +//]]> 74 +</script> 75 + #template("endpage.vm") 76 +#end 77 +{{/velocity}} 78 + 79 + 43 43 The sandbox is a part of your wiki that you can freely modify. It's meant to let you practice editing. You will discover how page editing works and create new pages. Simply click on **Edit** to get started! 44 44 45 45 {{info}}