email optional

This commit is contained in:
realaravinth
2021-04-12 11:14:21 +05:30
parent 1b0dfd8082
commit d32350e2b6
4 changed files with 47 additions and 14 deletions

View File

@@ -76,7 +76,7 @@ pub async fn register<'a>(name: &'a str, email: &str, password: &str) {
let msg = Register {
username: name.into(),
password: password.into(),
email: email.into(),
email: Some(email.into()),
};
let resp =
test::call_service(&mut app, post_request!(&msg, "/api/v1/signup").to_request()).await;