added ridirekt to list after adding user

This commit is contained in:
2000-Trek 2023-06-23 19:36:21 +02:00
parent 6d45a88aa1
commit f45b1aa192

View file

@ -132,7 +132,13 @@ def adduser():
c.execute(f"SELECT * FROM users WHERE username=?", [username]) c.execute(f"SELECT * FROM users WHERE username=?", [username])
user = c.fetchall()[0] user = c.fetchall()[0]
db_log.info(f"Added user id: {user[0]} name: {user[2]}") db_log.info(f"Added user id: {user[0]} name: {user[2]}")
return 'Added user <a href="/list">user and tag list</a>' return """<html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
<script type="text/javascript" charset="utf-8">
window.location="http://matekasse.server.c3h/list";
</script>
</html>
"""
else: else:
return '<p>Error: 170</p> <a href="/list">user and tag list</a>' return '<p>Error: 170</p> <a href="/list">user and tag list</a>'