support email
This commit is contained in:
parent
f0166a1779
commit
143b0e92cb
@ -1,6 +1,15 @@
|
|||||||
# WORK WORK
|
# WORK WORK
|
||||||
## NOW
|
## NOW
|
||||||
*PRODUCTION*
|
*PRODUCTION*
|
||||||
|
* ACP
|
||||||
|
* essential
|
||||||
|
* error log
|
||||||
|
* account lookup w/ pw reset
|
||||||
|
|
||||||
|
* nice to have
|
||||||
|
|
||||||
|
* bot game grind
|
||||||
|
|
||||||
* serde serialize privatise
|
* serde serialize privatise
|
||||||
* stripe prod
|
* stripe prod
|
||||||
* mobile styles
|
* mobile styles
|
||||||
|
|||||||
@ -121,7 +121,19 @@ button, input {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: whitesmoke;
|
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 {
|
svg {
|
||||||
|
|||||||
@ -84,17 +84,17 @@ class AccountStatus extends Component {
|
|||||||
<dt>Subscription</dt>
|
<dt>Subscription</dt>
|
||||||
<dd>{account.subscribed ? 'some date' : 'unsubscribed'}</dd>
|
<dd>{account.subscribed ? 'some date' : 'unsubscribed'}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
<button><a href={`mailto:support@mnml.gg?subject=Account%20Support:%20${account.name}`}>✉ support</a></button>
|
||||||
<button onClick={() => logout()}>Logout</button>
|
<button onClick={() => logout()}>Logout</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="email">Update Email:</label>
|
<label for="email">Email:</label>
|
||||||
<input
|
<dl>
|
||||||
class="login-input"
|
<dt>Current Email</dt>
|
||||||
disabled
|
<dd>{account.email ? account.email : 'No email set'}</dd>
|
||||||
type="email"
|
<dt>Status</dt>
|
||||||
name="current"
|
<dd>{account.email_confirmed ? 'Confirmed' : 'Unconfirmed'}</dd>
|
||||||
placeholder={account.email || 'no email set'}
|
</dl>
|
||||||
/>
|
|
||||||
<input
|
<input
|
||||||
class="login-input"
|
class="login-input"
|
||||||
type="email"
|
type="email"
|
||||||
@ -104,7 +104,7 @@ class AccountStatus extends Component {
|
|||||||
<button>Update</button>
|
<button>Update</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="current">Change Password:</label>
|
<label for="current">Password:</label>
|
||||||
<input
|
<input
|
||||||
class="login-input"
|
class="login-input"
|
||||||
type="password"
|
type="password"
|
||||||
|
|||||||
@ -72,16 +72,16 @@ struct JsonResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl JsonResponse {
|
impl JsonResponse {
|
||||||
fn success(response: String) -> Self {
|
fn success(response: String) -> Self {
|
||||||
JsonResponse { response: Some(response), success: true, error_message: None }
|
JsonResponse { response: Some(response), success: true, error_message: None }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn error(msg: String) -> Self {
|
fn error(msg: String) -> Self {
|
||||||
JsonResponse { response: None, success: false, error_message: Some(msg) }
|
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::<Mime>().unwrap();
|
let content_type = "application/json".parse::<Mime>().unwrap();
|
||||||
let msg = match status {
|
let msg = match status {
|
||||||
status::Ok => JsonResponse::success(message),
|
status::Ok => JsonResponse::success(message),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user