invites button

This commit is contained in:
ntr 2019-05-25 16:55:55 +10:00
parent 21efb909fb
commit e20b1f25a5
4 changed files with 11 additions and 2 deletions

View File

@ -170,6 +170,11 @@ button.left:hover, button.left:focus {
box-shadow: inset 0.5em 0 0 0 whitesmoke;
}
a {
color: whitesmoke;
font-size: 150%;
}
svg {
fill: none;
stroke: whitesmoke;

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>mnml pvp tbs</title>
<title>mnml.gg</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name=apple-mobile-web-app-capable content=yes>

View File

@ -30,6 +30,11 @@ function renderLogin({ submitLogin, submitRegister }) {
onClick={() => submitRegister(name, password)}>
Register
</button>
<button
className="login-btn"
onClick={() => document.location.assign('https://discord.gg/YJJgurM')}>
Discord + Invites
</button>
</div>
);
}

View File

@ -61,7 +61,6 @@ pub fn account_from_token(token: String, tx: &mut Transaction) -> Result<Account
pub fn account_create(params: AccountCreateParams, tx: &mut Transaction) -> Result<Account, Error> {
let id = Uuid::new_v4();
info!("{:?} {:?}", params.password, params.password.len());
if params.password.len() < PASSWORD_MIN_LEN {
return Err(err_msg("password must be at least 12 characters"));
}