From 143b0e92cb13dd538d22629ff0f7aea2c4d85b7f Mon Sep 17 00:00:00 2001 From: ntr Date: Tue, 13 Aug 2019 14:44:44 +1000 Subject: [PATCH] support email --- WORKLOG.md | 9 +++++++++ client/assets/styles/styles.less | 14 +++++++++++++- client/src/components/account.management.jsx | 18 +++++++++--------- server/src/net.rs | 14 +++++++------- 4 files changed, 38 insertions(+), 17 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 1967a507..8514baf8 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -1,6 +1,15 @@ # WORK WORK ## NOW *PRODUCTION* +* ACP + * essential + * error log + * account lookup w/ pw reset + + * nice to have + +* bot game grind + * serde serialize privatise * stripe prod * mobile styles diff --git a/client/assets/styles/styles.less b/client/assets/styles/styles.less index 690731a1..76fe12bf 100644 --- a/client/assets/styles/styles.less +++ b/client/assets/styles/styles.less @@ -121,7 +121,19 @@ button, input { a { color: whitesmoke; - font-size: 150%; + text-decoration: none; + + &:hover { + color: whitesmoke; + border-color: @gray-hover; + } + + &:focus { + /*colour necesary to bash skellington*/ + color: @gray-focus; + border-color: @gray-focus; + } + } svg { diff --git a/client/src/components/account.management.jsx b/client/src/components/account.management.jsx index fe058f6f..3561094e 100644 --- a/client/src/components/account.management.jsx +++ b/client/src/components/account.management.jsx @@ -84,17 +84,17 @@ class AccountStatus extends Component {
Subscription
{account.subscribed ? 'some date' : 'unsubscribed'}
+
- - + +
+
Current Email
+
{account.email ? account.email : 'No email set'}
+
Status
+
{account.email_confirmed ? 'Confirmed' : 'Unconfirmed'}
+
Update
- + Self { - JsonResponse { response: Some(response), success: true, error_message: None } - } + fn success(response: String) -> Self { + JsonResponse { response: Some(response), success: true, error_message: None } + } - fn error(msg: String) -> Self { - JsonResponse { response: None, success: false, error_message: Some(msg) } - } + fn error(msg: String) -> Self { + JsonResponse { response: None, success: false, error_message: Some(msg) } + } } -fn iron_response (status: status::Status, message: String) -> Response { +fn iron_response(status: status::Status, message: String) -> Response { let content_type = "application/json".parse::().unwrap(); let msg = match status { status::Ok => JsonResponse::success(message),