changed error message

This commit is contained in:
Simon Pirkelmann 2022-01-31 08:03:47 +01:00
parent c941d383c1
commit 8d02e669f8

View File

@ -380,7 +380,7 @@ def edit_token(token):
return render_template('edit.html', token=token, form=form)
else:
# flash an error message if the route is accessed with an invalid token
flash(f'Ausgewaehlter Token {token} in Tokenfile nicht gefunden.')
flash(f'Ungültiger Token {token}!')
return redirect('/tokens')
elif request.method == 'POST':
if form.validate():