feat: remove default user password
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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('');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user