mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
do not show email
This commit is contained in:
parent
b5e68a9453
commit
64180c4077
|
@ -14,6 +14,13 @@
|
||||||
<input type="hidden" name="form-name" value="update-profile">
|
<input type="hidden" name="form-name" value="update-profile">
|
||||||
|
|
||||||
<h3>Profile</h3>
|
<h3>Profile</h3>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">Email</label>
|
||||||
|
{{ form.email(class="form-control", value=current_user.email, readonly=True) }}
|
||||||
|
{{ render_field_errors(form.email) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="form-label">Name</label>
|
<label class="form-label">Name</label>
|
||||||
{{ form.name(class="form-control", value=current_user.name) }}
|
{{ form.name(class="form-control", value=current_user.name) }}
|
||||||
|
|
|
@ -16,6 +16,7 @@ from app.utils import random_string
|
||||||
|
|
||||||
|
|
||||||
class SettingForm(FlaskForm):
|
class SettingForm(FlaskForm):
|
||||||
|
email = StringField("Email")
|
||||||
name = StringField("Name", validators=[validators.DataRequired()])
|
name = StringField("Name", validators=[validators.DataRequired()])
|
||||||
profile_picture = FileField("Profile Picture")
|
profile_picture = FileField("Profile Picture")
|
||||||
|
|
||||||
|
|
|
@ -33,11 +33,11 @@
|
||||||
<span class="ml-2 d-none d-lg-block">
|
<span class="ml-2 d-none d-lg-block">
|
||||||
<span class="text-default">
|
<span class="text-default">
|
||||||
{{ current_user.name }}
|
{{ current_user.name }}
|
||||||
{% if current_user.is_premium() %}
|
|
||||||
- <small class="text-success">Premium</small>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
</span>
|
||||||
<small class="text-muted d-block mt-1">{{ current_user.email }}</small>
|
|
||||||
|
{% if current_user.is_premium() %}
|
||||||
|
<small class="text-success d-block mt-1">Premium</small>
|
||||||
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue