Back to Pocketbase

Interface newOTP

static/jsvm/interfaces/core.newOTP.html

latest668 B
Original Source

Interface newOTP

Hierarchy

  • newOTP

  • newOTP(app): OTP

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

Parameters

app: App

Returns OTP

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc