ramp_database.tools.user.add_user

ramp_database.tools.user.add_user(session, name, password, lastname, firstname, email, access_level='user', hidden_notes='', linkedin_url='', twitter_url='', facebook_url='', google_url='', github_url='', website_url='', bio='', is_want_news=True)

Add a new user in the database.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

namestr

The username.

passwordstr

The password.

lastnamestr

The user lastname.

firstnamestr

The user firstname.

emailstr

The user email address.

access_level{‘admin’, ‘user’, ‘asked’}, default=’user’

The access level of the user.

hidden_notesstr, default=’’

Some hidden notes.

linkedin_urlstr, default=’’

Linkedin URL.

twitter_urlstr, default=’’

Twitter URL.

facebook_urlstr, default=’’

Facebook URL.

google_urlstr, default=’’

Google URL.

github_urlstr, default=’’

GitHub URL.

website_urlstr, default=’’

Website URL.

biostr, default = ‘’

User biography.

is_want_newsbool, default is True

User wish to receive some news.

Returns
userramp_database.model.User

The user entry in the database.