Interface IMeteorAccounts

Index

Properties

Methods

Properties

public emailTemplates: { from: string; siteName: string; resetPassword: IMeteorEmailValues; enrollAccount: IMeteorEmailValues; verifyEmail: IMeteorEmailValues; }

public emailTemplates.enrollAccount: IMeteorEmailValues

public emailTemplates.from: string

public emailTemplates.resetPassword: IMeteorEmailValues

public emailTemplates.siteName: string

public emailTemplates.verifyEmail: IMeteorEmailValues

public loginServiceConfiguration: { remove(options: Object): void; insert(options: Object): void; }

public insert()

.options.options: Object

public remove()

.options.options: Object

public ui: { config(options: { requestPermissions?: Object; requestOfflineToken?: Object; passwordSignupFields?: string; }): any; }

public config(): any

Returns

any

.options.options: { requestPermissions?: Object; requestOfflineToken?: Object; passwordSignupFields?: string; }

optional public options.passwordSignupFields?: string

optional public options.requestOfflineToken?: Object

optional public options.requestPermissions?: Object

Methods

public changePassword(oldPassword: string, newPassword: string, callback?: Function)

Parameters

  • oldPassword: string
  • newPassword: string
  • callback?: Function optional

public config(options: { sendVerificationEmail?: boolean; forbidClientAccountCreation?: boolean; })

Parameters

  • options: { sendVerificationEmail?: boolean; forbidClientAccountCreation?: boolean; }

public createUser(options: { username?: string; email?: string; password?: string; profile?: string; }, callback?: Function)

Parameters

  • options: { username?: string; email?: string; password?: string; profile?: string; }
  • callback?: Function optional

public forgotPassword(options: { email: string; }, callback?: Function)

Parameters

  • options: { email: string; }
  • callback?: Function optional

public onCreateUser(func: Function)

Parameters

  • func: Function

public resetPassword(token: string, newPassword: string, callback?: Function)

Parameters

  • token: string
  • newPassword: string
  • callback?: Function optional

public sendEnrollmentEmail(userId: string, email?: string)

Parameters

  • userId: string
  • email?: string optional

public sendResetPasswordEmail(userId: string, email?: string)

Parameters

  • userId: string
  • email?: string optional

public sendVerificationEmail(userId: string, email?: string)

Parameters

  • userId: string
  • email?: string optional

public setPassword(userId: string, newPassword: string)

Parameters

  • userId: string
  • newPassword: string

public validateNewUser(func: Function)

Parameters

  • func: Function

public verifyEmail(token: string, callback?: Function)

Parameters

  • token: string
  • callback?: Function optional