redirect to panel.dashboard with social login

This commit is contained in:
deflax 2024-04-07 23:44:50 +03:00
parent 683fc644c8
commit ba44711328
3 changed files with 3 additions and 9 deletions

View file

@ -162,7 +162,9 @@ def oauth2_callback(provider):
# log the user in
login_user(user)
return redirect(url_for('main.index'))
#return redirect(url_for('main.index'))
flash('Last Login: {}'.format(user.last_seen.strftime("%a %d %B %Y %H:%M")))
return redirect(request.args.get('next') or url_for('panel.dashboard'))
@auth.route('/login', methods=['GET', 'POST'])
def login():

View file

@ -2,6 +2,4 @@
<p>To confirm your account please <a href="{{ url_for('auth.confirm', token=token, _external=True) }}">click here</a>.</p>
<p>Alternatively, you can paste the following link in your browser's address bar:</p>
<p>{{ url_for('auth.confirm', token=token, _external=True) }}</p>
<p>Sincerely,</p>
<p>Datapoint.bg</p>
<p><small>Note: replies to this email address are not monitored.</small></p>

View file

@ -1,13 +1,7 @@
Dear Customer,
Welcome to Datapoint!
To confirm your account please click on the following link:
{{ url_for('auth.confirm', token=token, _external=True) }}
Sincerely,
Datapoint.bg
Note: replies to this email address are not monitored.