add registry code
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
@@ -472,6 +472,7 @@ struct AccountCreateMsg {
|
||||
pub struct AccountCreateParams {
|
||||
pub name: String,
|
||||
pub password: String,
|
||||
pub code: String,
|
||||
}
|
||||
|
||||
#[derive(Debug,Clone,Serialize,Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user