|
|
|
@ -243,7 +243,7 @@ def solar_register_post():
|
|
|
|
|
|
|
|
|
|
portal.solar.send_admins_new_user_notification_mail(user_id, upload_handler_solar.config)
|
|
|
|
|
|
|
|
|
|
flash('Podatki so bili poslani v potrditev. Ko bo registracija potrjena, boste o tem obveščeni po e-mailu.')
|
|
|
|
|
flash('Podatki so bili poslani v potrditev. Ko bo registracija potrjena, boste o tem obveščeni po e-mailu. To lahko traja nekaj časa.')
|
|
|
|
|
return redirect(ROUTE_PREFIX + '/login/')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -894,6 +894,8 @@ def solar_institution_add_user():
|
|
|
|
|
|
|
|
|
|
new_user_id = portal.solar.register_new_user(name, email, password)
|
|
|
|
|
portal.solar.add_user_to_institution(new_user_id, current_user_institution.id, role)
|
|
|
|
|
portal.solar.add_cooperation_history_item(new_user_id, current_user_institution.id, role)
|
|
|
|
|
|
|
|
|
|
portal.solar.activate_user(new_user_id)
|
|
|
|
|
#token za nastaviti geslo
|
|
|
|
|
jwt_token = portal.solar.get_password_reset_token(email, config['APP_SECRET_KEY'])
|
|
|
|
|