Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as mage from 'mage'
- import { IsString, IsDefined, Acl } from 'mage-validator';
- import PlayerModule from '../'
- export default class {
- @IsString()
- @IsDefined()
- public username: string
- @IsString()
- @IsDefined()
- public password: string
- @Acl('*')
- public static async execute(state: mage.core.IState, username: string, password: string) {
- return PlayerModule.login(state, username, password);
- }
- }
Add Comment
Please, Sign In to add comment