export function getLoginFormRules(t) {
  return {
    username: [
      { required: true, message: t('login.usernameTips'), trigger: 'blur' },
      { min: 3, max: 20, message: t('login.usernameLength'), trigger: 'blur' }
    ],
    email: [
      { required: true, message: t('login.emailTips'), trigger: 'blur' },
      { type: 'email', message: t('login.emailFormat'), trigger: 'blur' }
    ],
    password: [
      { required: true, message: t('login.passwordTips'), trigger: 'blur' },
      { min: 6, max: 20, message: t('login.passwordLength'), trigger: 'blur' }
    ]
  };
}
