@(query: String, user: Option[User], email: Option[lila.common.EmailAddress])(implicit ctx: Context) @title = @{ "Email confirmation" } @js = { @embedJs { $('#mod-confirm form input').on('paste', function() { setTimeout(function() { $(this).parent().submit(); }.bind(this), 50); }).focus().each(function() { this.setSelectionRange(this.value.length, this.value.length); }); } } @layout( title = title, active = "email", moreJs = js) {

@title



If you provide an email, it will confirm the corresponding account, if any.
If you provide an email and a username, it will set the email to that user, but only if the user has not yet confirmed their email.

@user.map { u =>
User Email Games Marks Created Active Confirmed
@userLink(u, withBestRating = true, params = "?mod") @email.getOrElse("-") @u.count.game.localize @if(u.engine){ENGINE} @if(u.booster){BOOSTER} @if(u.troll){SHADOWBAN} @if(u.ipBan){IPBAN} @if(u.disabled){CLOSED} @momentFromNow(u.createdAt) @u.seenAt.map(momentFromNow(_)) @if(!u.everLoggedIn) { } else { }
}
}