AstraOS Ver. 1.45
All checks were successful
Deploy AstraOS Panel / deploy (push) Successful in 14s

Hot fix Account reactivation
This commit is contained in:
elias 2026-08-18 19:07:16 +02:00
parent 586f9938a3
commit dc180a1e8a
3 changed files with 4 additions and 2 deletions

View file

@ -11,7 +11,7 @@ DISCORD_BOT_TOKEN='MTM5NTAxODY2MDI2NzAzNjcxMg.GJE-k4.W0o09yJZfG3onzyzHLbXu4vBrKP
DISCORD_REDIRECT_URI='https://astra-os.de/callback/discord' DISCORD_REDIRECT_URI='https://astra-os.de/callback/discord'
IMPRESSUM_NAME='Elias Geworski' IMPRESSUM_NAME='Elias Geworski'
IMPRESSUM_ADDRESS='Taiostraße 4b, 90562 Heroldsberg' IMPRESSUM_ADDRESS=''
IMPRESSUM_EMAIL='elias.gew@hotmail.com' IMPRESSUM_EMAIL='elias.gew@hotmail.com'
IMPRESSUM_PHONE='' IMPRESSUM_PHONE=''
IMPRESSUM_COMPANY_REG='' IMPRESSUM_COMPANY_REG=''

View file

@ -169,6 +169,8 @@
<p class="text-center text-gray-600 text-xs mt-6"> <p class="text-center text-gray-600 text-xs mt-6">
&copy; 2026 AstraOS &nbsp;|&nbsp; &copy; 2026 AstraOS &nbsp;|&nbsp;
<a href="/impressum" class="hover:text-gray-400 transition">Impressum</a> <a href="/impressum" class="hover:text-gray-400 transition">Impressum</a>
&nbsp;|&nbsp;
<a href="/datenschutz" class="hover:text-gray-400 transition">Datenschutz</a>
</p> </p>
</div> </div>

View file

@ -1001,7 +1001,7 @@ def request_reactivation():
if not username: if not username:
flash("Benutzername ist erforderlich.", "danger") flash("Benutzername ist erforderlich.", "danger")
return redirect(url_for('account_disabled')) return redirect(url_for('account_disabled'))
user = accounts_collection.find_one({'username': username}) if accounts_collection else None user = accounts_collection.find_one({'username': username}) if accounts_collection is not None else None
if not user: if not user:
flash("Benutzername nicht gefunden.", "danger") flash("Benutzername nicht gefunden.", "danger")
return redirect(url_for('account_disabled')) return redirect(url_for('account_disabled'))