# Login Passport-通行证模块-登录 - [/passport.Login/Pwd](#passportloginpwd) - [/passport.Login/Code](#passportlogincode) - [/passport.Login/CodeAndRegister](#passportlogincodeandregister) ## /passport.Login/Pwd 通过密码登录 ### Request ```javascript { account: "", // type, 账号 必填 password: "", // type, 密码 必填 } ``` ### Reply ```javascript { id: "0", // type identity: "", // type, 用户唯一码 token: "", // type, 用户凭证 extend: { "": "" }, // map, 扩展字段 } ``` ## /passport.Login/Code 通过验证码登录 ### Request ```javascript { country: "", // type, 国家 phone: "", // type, 手机号码 code: "", // type, 验证码 } ``` ### Reply ```javascript { id: "0", // type identity: "", // type, 用户唯一码 token: "", // type, 用户凭证 extend: { "": "" }, // map, 扩展字段 } ``` ## /passport.Login/CodeAndRegister 通过验证码登录并注册 ### Request ```javascript { country: "", // type, 国家 phone: "", // type, 手机号码 code: "", // type, 验证码 } ``` ### Reply ```javascript { id: "0", // type identity: "", // type, 用户唯一码 token: "", // type, 用户凭证 extend: { "": "" }, // map, 扩展字段 } ```