Changes

Jump to navigation Jump to search
721 bytes added ,  09:40, 12 August 2016
no edit summary
| '''Errors'''
|{{Error|name|#Errors}} The specified user name is invalid.
|}
 
==user:check==
 
{{Mark|Introduced with Version 8.6}}:
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|user:check|$name as xs:string, $password as xs:string|xs:empty-sequence()}}<br/>
|-
| '''Summary'''
|Checks if the specified user and password is correct. Raises errors otherwise.
|-
| '''Examples'''
|
* {{Code|user:check('admin', 'admin')}} will raise an error if the admin password was changed.
|-
| '''Errors'''
|{{Error|name|#Errors}} The specified user name is invalid.<br/>{{Error|unknown|#Errors}} The specified user does not exist.<br/>{{Error|password|#Errors}} The specified password is wrong.<br/>
|}
|{{Code|unknown}}
|The specified user does not exist.
|-
|{{Code|password}}
|The specified password is wrong.
|-
|{{Code|admin}}
;Version 8.6
* Added: [[#user:check|user:check]].
* Updated: [[#user:list|user:list]], [[#user:list-details|user:list-details]]: If called by non-admins, will only return the current user.
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu