fixed mail link
All checks were successful
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Successful in 22s

This commit is contained in:
Tobias Weise 2024-09-11 23:01:56 +02:00
parent 73c9305089
commit 6967202f31
3 changed files with 5 additions and 5 deletions

View File

@ -45,6 +45,9 @@ assert elastic_url
jwt_secret = os.getenv("SECRET")
assert jwt_secret
app_domain = os.getenv("APP_DOMAIN")
assert app_domain
class MeasureTime:
@ -371,7 +374,7 @@ def create_app():
Please click on the following link to verify your e-mail:
<a href="http://127.0.0.1:5000/verify?id={user.password_hash}">Click here!</a>
<a href="{app_domain}/verify?id={user.password_hash}">Click here!</a>
"""

View File

@ -4,10 +4,7 @@ from elasticsearch_dsl import Document, InnerDoc, Nested, Date, Integer, Keyword
class User(Document):
creation_date = Date()
email = Keyword()
#password_hash = Text(index=False)
password_hash = Keyword()
#password_hash = Text(index=True)
role = Keyword()
#salt = Text(index=False)
@ -39,7 +36,6 @@ class Chatbot(Document):
description = Text()
systemPrompt = Text(index=False)
#slug = Keyword()
files = Nested()
text = Text()
links = Nested()

View File

@ -1,5 +1,6 @@
APP_PREFIX=creative_bots
APP_DOMAIN=https://chatbot.mysite.net
# DEFAULT_USERS is list of lists, each nested list respectively contains email, password and role
DEFAULT_USERS=[["user@mail.net", "12345", "user"], ["admin@mail.net", "12345", "admin"]]