add registry code

This commit is contained in:
ntr
2019-06-11 17:44:24 +10:00
parent 440376e5c3
commit 1faf75bb40
7 changed files with 36 additions and 15 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ pub fn account_create(params: AccountCreateParams, tx: &mut Transaction) -> Resu
return Err(err_msg("password must be at least 12 characters"));
}
if params.password != "grepgrepgrep" {
if params.code.to_lowercase() != "grep842" {
return Err(err_msg("https://discord.gg/YJJgurM"));
}
+1
View File
@@ -472,6 +472,7 @@ struct AccountCreateMsg {
pub struct AccountCreateParams {
pub name: String,
pub password: String,
pub code: String,
}
#[derive(Debug,Clone,Serialize,Deserialize)]