ios - How can I signup with Username + Email + Password [Swift + Deployd]? -


how can make alamofire(swift-ios) , deployd accept third parameter (property) i.e., email? it's working fine need add email textfield too.

swift code:

    let user = "root"     let password = "root"     //let email = "root@root.com" (the third parameter)      let credential = nsurlcredential(user: user, password: password, persistence: .forsession)      let parameters = ["username" : user, "password" : password]     alamofire.request(.post, "http://localhost:2403/users", parameters: parameters)         .authenticate(usingcredential: credential)         .response { request, response, _, error in  } 

from deployd's docs:

//create user dpd.users.post({   username: "jeffbcross",   password: "secret" }, oncreateuser); 

add custom properties , roles users, , write custom event scripts control access users of app.

i have no idea how can write custom event script. don't know language other swift. i've created 'email' property @ users dashboard it's not taken effect.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -