fixed mail link
All checks were successful
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Successful in 22s
All checks were successful
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Successful in 22s
This commit is contained in:
parent
73c9305089
commit
6967202f31
@ -45,6 +45,9 @@ assert elastic_url
|
|||||||
jwt_secret = os.getenv("SECRET")
|
jwt_secret = os.getenv("SECRET")
|
||||||
assert jwt_secret
|
assert jwt_secret
|
||||||
|
|
||||||
|
app_domain = os.getenv("APP_DOMAIN")
|
||||||
|
assert app_domain
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MeasureTime:
|
class MeasureTime:
|
||||||
@ -371,7 +374,7 @@ def create_app():
|
|||||||
|
|
||||||
Please click on the following link to verify your e-mail:
|
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>
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -4,10 +4,7 @@ from elasticsearch_dsl import Document, InnerDoc, Nested, Date, Integer, Keyword
|
|||||||
class User(Document):
|
class User(Document):
|
||||||
creation_date = Date()
|
creation_date = Date()
|
||||||
email = Keyword()
|
email = Keyword()
|
||||||
#password_hash = Text(index=False)
|
|
||||||
password_hash = Keyword()
|
password_hash = Keyword()
|
||||||
#password_hash = Text(index=True)
|
|
||||||
|
|
||||||
role = Keyword()
|
role = Keyword()
|
||||||
|
|
||||||
#salt = Text(index=False)
|
#salt = Text(index=False)
|
||||||
@ -39,7 +36,6 @@ class Chatbot(Document):
|
|||||||
description = Text()
|
description = Text()
|
||||||
systemPrompt = Text(index=False)
|
systemPrompt = Text(index=False)
|
||||||
|
|
||||||
#slug = Keyword()
|
|
||||||
files = Nested()
|
files = Nested()
|
||||||
text = Text()
|
text = Text()
|
||||||
links = Nested()
|
links = Nested()
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
APP_PREFIX=creative_bots
|
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 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"]]
|
DEFAULT_USERS=[["user@mail.net", "12345", "user"], ["admin@mail.net", "12345", "admin"]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user