Skip to contents

Creates a new role and records it in an admin.logins table. If the admin.logins table does not exist, it will be created and filled with random passwords. Best practice is to make a new set of credentials for every webapp and every human user.

Usage

add_role(conn, username)

Arguments

conn

Connection to a database, which must be using the KWTAdmin credentials.

username

The username for the new credentials.

Value

A list including the username and password of the new credentials