security_registry->checkUser

Checks user credentials.

Target member

Signature

1security_registry->checkUser(username::string, password::string, ...)

Checks user credentials.

security_registry->checkUser is called with member syntax on a receiver value. security_registry->checkUser works with request identity or stored session state. Keep authorization checks close to the action they protect.

Parameters

username
Required value of type string. Supply username positionally unless the signature shows a keyword form.
password
Required value of type string. Supply password positionally unless the signature shows a keyword form.
...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1security_registry->checkUser('ada', 'secret')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.