Guest User

Untitled

a guest
May 27th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import * as mage from 'mage'
  2. import { IsString, IsDefined, Acl } from 'mage-validator';
  3.  
  4. import PlayerModule from '../'
  5.  
  6. export default class {
  7. @IsString()
  8. @IsDefined()
  9. public username: string
  10.  
  11. @IsString()
  12. @IsDefined()
  13. public password: string
  14.  
  15. @Acl('*')
  16. public static async execute(state: mage.core.IState, username: string, password: string) {
  17. return PlayerModule.login(state, username, password);
  18. }
  19. }
Add Comment
Please, Sign In to add comment