Sign controller for the-server
- Functions
TheSignCtrl
Class- new TheSignCtrl()
- ctrl.signup(name, password, otherAttributes)
- ctrl.signin(name, password, options)
- ctrl.signout()
- ctrl.getSigned()
- ctrl.syncSigned()
- ctrl.assertSigned()
- ctrl.assertPassword(password)
- ctrl.signup(name, password, otherAttributes)
- ctrl.signin(name, password, options)
- ctrl.signout()
- ctrl.getSigned()
- ctrl.syncSigned()
- ctrl.assertSigned()
- ctrl.assertPassword(password)
Create a TheSignCtrl instance
Param | Type | Description |
---|---|---|
args | * |
Mix up controller class with sign check feature
Param | Type | Description |
---|---|---|
BaseClass | function | |
options | Object | Optional settings |
options.only | Array.<string> | Action names to apply. |
Sign controller for the-server
Extends:
TheCtrl
Constructor of TheSignCtrl class
Sign up
Param | Type | Description |
---|---|---|
name | string | Name to identify user |
password | string | Password |
otherAttributes | Object | Other attributes |
Signin
Param | Type | Description |
---|---|---|
name | string | Name to identify user |
password | string | Password |
options | Object | Optional settings |
Signout
Get signed
Sync signed
Assert signed
Assert password
Param | Type | Description |
---|---|---|
password |
Sign up
Param | Type | Description |
---|---|---|
name | string | Name to identify user |
password | string | Password |
otherAttributes | Object | Other attributes |
Signin
Param | Type | Description |
---|---|---|
name | string | Name to identify user |
password | string | Password |
options | Object | Optional settings |
Signout
Get signed
Sync signed
Assert signed
Assert password
Param | Type | Description |
---|---|---|
password |