Passwords | R Documentation |
These functions allow Users to change their password or (for superusers) other Users' passwords, to check a username/password combination, to generate a random password, or (for superusers) to send a password reset email to a User.
changePassword( username = getOption("GeneHive.username"), random = TRUE, netrc.file = getOption("GeneHive.netrc.file"), verbose = getOption("GeneHive.verbose") ) checkPassword(username = getOption("GeneHive.username"), password) randomPassword(nchars = 20) resetPassword(username, prefix, verbose = getOption("GeneHive.verbose"))
username |
A character string containing the name of the User;
defaults to |
random |
A logical value specifying whether a random password should be generated;
defaults to |
netrc.file |
A character string specifying the location of the .netrc file |
verbose |
A logical value specifying whether messages should be printed |
password |
A character string containing the password that will be checked for a User |
nchars |
The length of the password to be generated, in characters |
prefix |
An optional character string containing the URL prefix of a landing page to
use in email template. This will have |
changePassword
TRUE
(invisibly) if the password was successfully
changed; otherwise, the function terminates with an error.
checkPassword
TRUE
if the username and password are valid,
FALSE
otherwise.
randomPassword
The password (invisibly).
resetPassword
The HTTP response body of the request (invisibly).
Adam C. Gower agower@bu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.