Home Reference Source
import ProfileSettings from 'magister.js/src/profileSettings.js'
public class | source

ProfileSettings

Extends:

MagisterThing → ProfileSettings

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public

async changePassword(changed: string, original: string): Promise

Change the user password, seperate function because requires verification.

public

Update the server to reflect the changes made on the properties of this ProfileSettings instance.

Inherited Summary

From class MagisterThing
public

Public Members

public emailAddress: String source

public mobileNumber: String source

public redirectMagisterMessages: Boolean source

Public Methods

public async changePassword(changed: string, original: string): Promise source

Change the user password, seperate function because requires verification.

Params:

NameTypeAttributeDescription
changed string
original string
  • optional

Not required, defaults to password set on auth

Return:

Promise

public async saveChanges(): Promise<Error|undefined> source

Update the server to reflect the changes made on the properties of this ProfileSettings instance.