Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def sign_up():
"""Sign-up request."""
if flask_login.current_user.is_authenticated:
session['logged_in'] = True
return redirect(url_for('ramp.problems'))
form = UserCreateProfileForm()
if form.validate_on_submit():
try:
user = add_user(
session=db.session,
name=form.user_name.data,
password=form.password.data,
lastname=form.lastname.data,
firstname=form.firstname.data,
email=form.email.data,
linkedin_url=form.linkedin_url.data,
twitter_url=form.twitter_url.data,
facebook_url=form.facebook_url.data,
google_url=form.google_url.data,
github_url=form.github_url.data,
website_url=form.website_url.data,
bio=form.bio.data,