General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
ForgotUsername
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to your wiki
»
Forgot your username?
Wiki source code of
Forgot your username?
Last modified by
Administrator
on 2011/03/02 17:34
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: {{velocity}} 2: #set($email = "$!request.get('e')") 3: #if($email == '') 4: $msg.get('xe.admin.forgotUsername.instructions') 5: 6: {{html}} 7: <form method="post" action=""> 8: <div><label for="e">$msg.get('xe.admin.forgotUsername.email.label')</label> <input type="text" id="e" name="e"/> <span class="buttonwrapper"><input type="submit" value="$msg.get('xe.admin.forgotUsername.submit')" class="button"/></span></div> 9: </form> 10: {{/html}} 11: 12: #else 13: #set($results = $xwiki.searchDocuments(", BaseObject obj, StringProperty prop where obj.name = doc.fullName and obj.className = 'XWiki.XWikiUsers' and prop.id.id = obj.id and prop.id.name = 'email' and LOWER(prop.value) = ?", [$email.toLowerCase()])) 14: #if($results.size() == 0) 15: $msg.get('xe.admin.forgotUsername.error.noAccount') 16: 17: [[$msg.get('xe.admin.forgotUsername.error.retry')>>$doc.fullName]] | [[$msg.get('xe.admin.forgotUsername.login')>>path:${xwiki.getURL('XWiki.XWikiLogin', 'login')}]] 18: #elseif($results.size() == 1) 19: $msg.get('xe.admin.forgotUsername.result', ["**${results.get(0).substring($results.get(0).indexOf('.')).substring(1)}**"]) 20: 21: [[$msg.get('xe.admin.forgotUsername.login')>>path:${xwiki.getURL('XWiki.XWikiLogin', 'login')}]] 22: #else 23: $msg.get('xe.admin.forgotUsername.multipleResults') 24: #foreach($item in $results) 25: * **${item.substring($item.indexOf('.')).substring(1)}** 26: #end 27: 28: [[$msg.get('xe.admin.forgotUsername.login')>>path:${xwiki.getURL('XWiki.XWikiLogin', 'login')}]] 29: #end 30: #end 31: {{/velocity}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox