mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-12-04 14:46:24 -05:00
Try to fix up account_id value in accounts_dict for mismatched logins
This commit is contained in:
parent
a427273f63
commit
b1eb270881
@ -424,8 +424,8 @@ def old_login(request):
|
|||||||
return redirect(home)
|
return redirect(home)
|
||||||
except IntegrityError:
|
except IntegrityError:
|
||||||
account = Account.objects.get(username=account.username)
|
account = Account.objects.get(username=account.username)
|
||||||
accounts_dict[account.username]['account_id'] = account.id
|
accounts_dict[account.username] = { 'account_id': account.id, 'user': user }
|
||||||
request.session['accounts_dict'] = accounts_dict
|
request.settings['account_dict'] = accounts_dict
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
form.add_error('', ex)
|
form.add_error('', ex)
|
||||||
return render(request, 'setup/login.html', {'form': form})
|
return render(request, 'setup/login.html', {'form': form})
|
||||||
|
Loading…
Reference in New Issue
Block a user