auth.js 222 B

123456789
  1. module.exports = class extends think.Logic {
  2. loginAction(){
  3. this.allowMethods = 'post';
  4. this.rules = {
  5. username: {required: true, string: true},
  6. password: {required: true, string: true}
  7. };
  8. }
  9. };