feat: remove default user password

This commit is contained in:
yanghao05
2025-04-28 21:11:57 +08:00
parent 4b756d55a2
commit fe1945df63
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ type TokenResponse struct {
// @Router /admin/auth [post]
// @Bind body body
func (ctl *auth) Login(ctx fiber.Ctx, body *AuthBody) (*TokenResponse, error) {
if body.Username == "admin" && body.Password == "xixi@0202" {
if body.Username == "pl.yang" && body.Password == "Xixi@0202" {
claim := ctl.jwt.CreateClaims(jwt.BaseClaims{
UserID: -20140202,
})

View File

@@ -11,8 +11,8 @@ import { useRouter } from 'vue-router';
const router = useRouter();
const authStore = useAuthStore();
const username = ref('admin');
const password = ref('xixi@0202');
const username = ref('');
const password = ref('');
const loading = ref(false);
const errorMessage = ref('');