Hierarchy

  • newOTP
  • 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)

    Parameters

    Returns OTP

Generated using TypeDoc