returnpage(title=_("Role authorization request"),req=req,body=_("This request for an authorization has already been authorized."),uid=webuser.getUid(req),navmenuid='youraccount',language=args['ln'])
returnpage(title=title,
body=webaccount.perform_back(
_("You have successfully obtained an authorization as %(x_role)s! "
"This authorization will last until %(x_expiration)s and until "
"you close your browser if you are a guest user.")%
body="<p>"+_("You have confirmed the validity of your email"
" address!")+"</p>"
ifCFG_ACCESS_CONTROL_LEVEL_ACCOUNTS==1:
body+="<p>"+_("Please, wait for the administrator to "
"enable your account.")+"</p>"
else:
uid=webuser.update_Uid(req,email)
body+="<p>"+_("You can now go to %(x_url_open)syour account page%(x_url_close)s.")%{'x_url_open':'<a href="/youraccount/display?ln=%s">'%args['ln'],'x_url_close':'</a>'}+"</p>"
body="<p>"+_("You have already confirmed the validity of your email address!")+"</p>"
ifCFG_ACCESS_CONTROL_LEVEL_ACCOUNTS==1:
body+="<p>"+_("Please, wait for the administrator to "
"enable your account.")+"</p>"
else:
body+="<p>"+_("You can now go to %(x_url_open)syour account page%(x_url_close)s.")%{'x_url_open':'<a href="/youraccount/display?ln=%s">'%args['ln'],'x_url_close':'</a>'}+"</p>"
mess=_("Desired nickname %s already exists in the database.")%args['p_nickname']
mess+=" "+_("Please try again.")
act="/youraccount/register?ln=%s"%args['ln']
title=_("Registration failure")
elifruid==5:
mess=_("Users cannot register themselves, only admin can register them.")
act="/youraccount/register?ln=%s"%args['ln']
title=_("Registration failure")
elifruid==6:
mess=_("The site is having troubles in sending you an email for confirming your email address.")+_("The error has been logged and will be taken in consideration as soon as possible.")