forked from Github-Mirrors/canaille
chore: use the .example domain in placeholders
This commit is contained in:
parent
a29751bb5e
commit
cd398ffa0a
3 changed files with 13 additions and 13 deletions
|
@ -126,7 +126,7 @@ class LDAPBackend(Backend):
|
||||||
formatted_name=f"canaille_{uuid.uuid4()}",
|
formatted_name=f"canaille_{uuid.uuid4()}",
|
||||||
family_name=f"canaille_{uuid.uuid4()}",
|
family_name=f"canaille_{uuid.uuid4()}",
|
||||||
user_name=f"canaille_{uuid.uuid4()}",
|
user_name=f"canaille_{uuid.uuid4()}",
|
||||||
emails=f"canaille_{uuid.uuid4()}@mydomain.tld",
|
emails=f"canaille_{uuid.uuid4()}@mydomain.example",
|
||||||
password="correct horse battery staple",
|
password="correct horse battery staple",
|
||||||
)
|
)
|
||||||
Backend.instance.save(user)
|
Backend.instance.save(user)
|
||||||
|
@ -145,7 +145,7 @@ class LDAPBackend(Backend):
|
||||||
cn=f"canaille_{uuid.uuid4()}",
|
cn=f"canaille_{uuid.uuid4()}",
|
||||||
family_name=f"canaille_{uuid.uuid4()}",
|
family_name=f"canaille_{uuid.uuid4()}",
|
||||||
user_name=f"canaille_{uuid.uuid4()}",
|
user_name=f"canaille_{uuid.uuid4()}",
|
||||||
emails=f"canaille_{uuid.uuid4()}@mydomain.tld",
|
emails=f"canaille_{uuid.uuid4()}@mydomain.example",
|
||||||
password="correct horse battery staple",
|
password="correct horse battery staple",
|
||||||
)
|
)
|
||||||
Backend.instance.save(user)
|
Backend.instance.save(user)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
SECRET_KEY = "change me before you go in production"
|
SECRET_KEY = "change me before you go in production"
|
||||||
|
|
||||||
# The interface on which canaille will be served
|
# The interface on which canaille will be served
|
||||||
# SERVER_NAME = "auth.mydomain.tld"
|
# SERVER_NAME = "auth.mydomain.example"
|
||||||
# PREFERRED_URL_SCHEME = "https"
|
# PREFERRED_URL_SCHEME = "https"
|
||||||
|
|
||||||
[CANAILLE]
|
[CANAILLE]
|
||||||
|
@ -88,7 +88,7 @@ SECRET_KEY = "change me before you go in production"
|
||||||
# In certain special cases (example : questioning about password
|
# In certain special cases (example : questioning about password
|
||||||
# corruption), it is necessary to provide an administration contact
|
# corruption), it is necessary to provide an administration contact
|
||||||
# email.
|
# email.
|
||||||
# ADMIN_EMAIL = "admin@mydomain.tld"
|
# ADMIN_EMAIL = "admin@mydomain.example"
|
||||||
|
|
||||||
# If :py:data:`True`, Canaille will check for password compromise on HIBP
|
# If :py:data:`True`, Canaille will check for password compromise on HIBP
|
||||||
# every time a new password is register.
|
# every time a new password is register.
|
||||||
|
@ -238,7 +238,7 @@ WRITE = [
|
||||||
# PRIVATE_KEY = "..."
|
# PRIVATE_KEY = "..."
|
||||||
# PUBLIC_KEY = "..."
|
# PUBLIC_KEY = "..."
|
||||||
# The URI of the identity provider
|
# The URI of the identity provider
|
||||||
# ISS = "https://auth.mydomain.tld"
|
# ISS = "https://auth.mydomain.example"
|
||||||
# The key type parameter
|
# The key type parameter
|
||||||
# KTY = "RSA"
|
# KTY = "RSA"
|
||||||
# The key algorithm
|
# The key algorithm
|
||||||
|
@ -272,4 +272,4 @@ WRITE = [
|
||||||
# SSL = false
|
# SSL = false
|
||||||
# LOGIN = ""
|
# LOGIN = ""
|
||||||
# PASSWORD = ""
|
# PASSWORD = ""
|
||||||
# FROM_ADDR = "admin@mydomain.tld"
|
# FROM_ADDR = "admin@mydomain.example"
|
||||||
|
|
|
@ -34,7 +34,7 @@ class ClientAddForm(Form):
|
||||||
wtforms.EmailField(
|
wtforms.EmailField(
|
||||||
_("Contacts"),
|
_("Contacts"),
|
||||||
validators=[wtforms.validators.Optional(), email_validator],
|
validators=[wtforms.validators.Optional(), email_validator],
|
||||||
render_kw={"placeholder": "admin@mydomain.tld"},
|
render_kw={"placeholder": "admin@mydomain.example"},
|
||||||
),
|
),
|
||||||
min_entries=1,
|
min_entries=1,
|
||||||
validators=[unique_values],
|
validators=[unique_values],
|
||||||
|
@ -45,7 +45,7 @@ class ClientAddForm(Form):
|
||||||
wtforms.validators.DataRequired(),
|
wtforms.validators.DataRequired(),
|
||||||
is_uri,
|
is_uri,
|
||||||
],
|
],
|
||||||
render_kw={"placeholder": "https://mydomain.tld"},
|
render_kw={"placeholder": "https://mydomain.example"},
|
||||||
)
|
)
|
||||||
redirect_uris = wtforms.FieldList(
|
redirect_uris = wtforms.FieldList(
|
||||||
wtforms.URLField(
|
wtforms.URLField(
|
||||||
|
@ -54,7 +54,7 @@ class ClientAddForm(Form):
|
||||||
wtforms.validators.DataRequired(),
|
wtforms.validators.DataRequired(),
|
||||||
is_uri,
|
is_uri,
|
||||||
],
|
],
|
||||||
render_kw={"placeholder": "https://mydomain.tld/callback"},
|
render_kw={"placeholder": "https://mydomain.example/callback"},
|
||||||
),
|
),
|
||||||
min_entries=1,
|
min_entries=1,
|
||||||
validators=[unique_values],
|
validators=[unique_values],
|
||||||
|
@ -67,7 +67,7 @@ class ClientAddForm(Form):
|
||||||
is_uri,
|
is_uri,
|
||||||
],
|
],
|
||||||
render_kw={
|
render_kw={
|
||||||
"placeholder": "https://mydomain.tld/you-have-been-disconnected"
|
"placeholder": "https://mydomain.example/you-have-been-disconnected"
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
min_entries=1,
|
min_entries=1,
|
||||||
|
@ -120,7 +120,7 @@ class ClientAddForm(Form):
|
||||||
wtforms.validators.Optional(),
|
wtforms.validators.Optional(),
|
||||||
is_uri,
|
is_uri,
|
||||||
],
|
],
|
||||||
render_kw={"placeholder": "https://mydomain.tld/logo.png"},
|
render_kw={"placeholder": "https://mydomain.example/logo.png"},
|
||||||
)
|
)
|
||||||
tos_uri = wtforms.URLField(
|
tos_uri = wtforms.URLField(
|
||||||
_("Terms of service URI"),
|
_("Terms of service URI"),
|
||||||
|
@ -128,7 +128,7 @@ class ClientAddForm(Form):
|
||||||
wtforms.validators.Optional(),
|
wtforms.validators.Optional(),
|
||||||
is_uri,
|
is_uri,
|
||||||
],
|
],
|
||||||
render_kw={"placeholder": "https://mydomain.tld/tos.html"},
|
render_kw={"placeholder": "https://mydomain.example/tos.html"},
|
||||||
)
|
)
|
||||||
policy_uri = wtforms.URLField(
|
policy_uri = wtforms.URLField(
|
||||||
_("Policy URI"),
|
_("Policy URI"),
|
||||||
|
@ -136,7 +136,7 @@ class ClientAddForm(Form):
|
||||||
wtforms.validators.Optional(),
|
wtforms.validators.Optional(),
|
||||||
is_uri,
|
is_uri,
|
||||||
],
|
],
|
||||||
render_kw={"placeholder": "https://mydomain.tld/policy.html"},
|
render_kw={"placeholder": "https://mydomain.example/policy.html"},
|
||||||
)
|
)
|
||||||
software_id = wtforms.StringField(
|
software_id = wtforms.StringField(
|
||||||
_("Software ID"),
|
_("Software ID"),
|
||||||
|
|
Loading…
Reference in a new issue