use EMAIL_DOMAIN instead of simplelogin.co
This commit is contained in:
parent
8c38fe5b56
commit
a1c65d3921
|
@ -64,7 +64,7 @@
|
||||||
<input class="form-control" style="flex-grow: 2" name="custom-email-prefix">
|
<input class="form-control" style="flex-grow: 2" name="custom-email-prefix">
|
||||||
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
|
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
|
||||||
<div class="ml-2">
|
<div class="ml-2">
|
||||||
.{{ email_suffix }}@simplelogin.co
|
.{{ email_suffix }}@{{ EMAIL_DOMAIN }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -91,25 +91,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<hr>
|
|
||||||
<div class="card-title">
|
|
||||||
<b>{{ client.name }}</b> will receive your following information:
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{% for scope in client.get_scopes() %}
|
|
||||||
<div style="display: flex; align-items: center; margin: .5rem 0; line-height: 1.3rem">
|
|
||||||
{% if scope == Scope.AVATAR_URL and current_user.profile_picture_id %}
|
|
||||||
avatar: <img src="{{ current_user.profile_picture_url() }}" class="avatar" style="margin: 10px 0px">
|
|
||||||
{% elif scope == Scope.EMAIL %}
|
|
||||||
{{ scope.value }}:
|
|
||||||
A random alias or your original email
|
|
||||||
{% elif scope == Scope.NAME %}
|
|
||||||
{{ scope.value }}: <b>{{ current_user.name }}</b>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if client_user %}
|
{% if client_user %}
|
||||||
|
@ -125,21 +107,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="form-group" style="margin-top: 1rem">
|
|
||||||
<div class="custom-controls-stacked">
|
|
||||||
<label class="custom-control custom-checkbox">
|
|
||||||
<input type="checkbox" name="gen-email"
|
|
||||||
class="custom-control-input" checked>
|
|
||||||
<span class="custom-control-label">Use email alias</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<small class="form-text text-muted">
|
|
||||||
If checked, an email alias will be used. <br>
|
|
||||||
Otherwise, your personal email will be communicated to <b>{{ client.name }}</b>.
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-footer">
|
<div class="form-footer">
|
||||||
<div class="btn-group btn-block" role="group" aria-label="Basic example">
|
<div class="btn-group btn-block" role="group" aria-label="Basic example">
|
||||||
<button type="submit" name="button" value="allow"
|
<button type="submit" name="button" value="allow"
|
||||||
|
|
|
@ -88,6 +88,7 @@ def authorize():
|
||||||
personal_email=current_user.email,
|
personal_email=current_user.email,
|
||||||
other_emails=other_emails,
|
other_emails=other_emails,
|
||||||
email_suffix=email_suffix,
|
email_suffix=email_suffix,
|
||||||
|
EMAIL_DOMAIN=EMAIL_DOMAIN,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# after user logs in, redirect user back to this page
|
# after user logs in, redirect user back to this page
|
||||||
|
|
Loading…
Reference in New Issue