NewOTP instantiates and returns a new blank *OTP model.
Example usage:
otp := core.NewOTP(app) otp.SetRecordRef(user.Id) otp.SetCollectionRef(user.Collection().Id) otp.SetPassword(security.RandomStringWithAlphabet(6, "1234567890")) app.Save(otp) Copy
otp := core.NewOTP(app) otp.SetRecordRef(user.Id) otp.SetCollectionRef(user.Collection().Id) otp.SetPassword(security.RandomStringWithAlphabet(6, "1234567890")) app.Save(otp)
Generated using TypeDoc
NewOTP instantiates and returns a new blank *OTP model.
Example usage: