XWiki
ForgotUsername
en
0
Main.WebHome
XWiki.Admin
XWiki.Admin
xwiki:XWiki.Admin
1219710939000
1219710939000
1219710939000
1.1

# $msg.get("xe.admin.forgotUsername.title")

Imported from XAR
false
xwiki/2.1
false
XWiki.XWikiRights
1
0
select
allow
allow
4
Allow/Deny
0
com.xpn.xwiki.objects.classes.BooleanClass
0
0
select
1
groups
1
Groups
0
5
0
1
com.xpn.xwiki.objects.classes.GroupsClass
0
0
select
1
levels
2
Levels
0
3
0
com.xpn.xwiki.objects.classes.LevelsClass
0
0
select
1
users
3
Users
0
5
0
1
com.xpn.xwiki.objects.classes.UsersClass
XWiki.ForgotUsername
0
XWiki.XWikiRights
5f9081d2-87b6-430e-8bb9-edc66544fc06
0 XWiki.XWikiAllGroup edit XWiki.XWikiGuest
XWiki.XWikiRights
1
0
select
allow
allow
4
Allow/Deny
0
com.xpn.xwiki.objects.classes.BooleanClass
0
0
select
1
groups
1
Groups
0
5
0
1
com.xpn.xwiki.objects.classes.GroupsClass
0
0
select
1
levels
2
Levels
0
3
0
com.xpn.xwiki.objects.classes.LevelsClass
0
0
select
1
users
3
Users
0
5
0
1
com.xpn.xwiki.objects.classes.UsersClass
XWiki.ForgotUsername
1
XWiki.XWikiRights
54be8bc6-c81a-4149-b2b0-161b2b974857
0 xwiki:XWiki.XWikiAllGroup edit
XWiki.XWikiRights
1
0
select
allow
allow
4
Allow/Deny
0
com.xpn.xwiki.objects.classes.BooleanClass
0
0
select
1
groups
1
Groups
0
5
0
1
com.xpn.xwiki.objects.classes.GroupsClass
0
0
select
1
levels
2
Levels
0
3
0
com.xpn.xwiki.objects.classes.LevelsClass
0
0
select
1
users
3
Users
0
5
0
1
com.xpn.xwiki.objects.classes.UsersClass
XWiki.ForgotUsername
2
XWiki.XWikiRights
06daec64-228b-4da1-b7e6-b59d9624c859
1 XWiki.XWikiAllGroup view XWiki.XWikiGuest
{{velocity}} #set($email = "$!request.get('e')") #if($email == '') $msg.get('xe.admin.forgotUsername.instructions')

{{html}} <form method="post" action=""> <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> </form> {{/html}}

#else #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()])) #if($results.size() == 0) $msg.get('xe.admin.forgotUsername.error.noAccount')

[[$msg.get('xe.admin.forgotUsername.error.retry')>>$doc.fullName]] | [[$msg.get('xe.admin.forgotUsername.login')>>path:${xwiki.getURL('XWiki.XWikiLogin', 'login')}]] #elseif($results.size() == 1) $msg.get('xe.admin.forgotUsername.result', ["**${results.get(0).substring($results.get(0).indexOf('.')).substring(1)}**"])

[[$msg.get('xe.admin.forgotUsername.login')>>path:${xwiki.getURL('XWiki.XWikiLogin', 'login')}]] #else $msg.get('xe.admin.forgotUsername.multipleResults') #foreach($item in $results) * **${item.substring($item.indexOf('.')).substring(1)}** #end

[[$msg.get('xe.admin.forgotUsername.login')>>path:${xwiki.getURL('XWiki.XWikiLogin', 'login')}]] #end #end {{/velocity}}