feat: remove default user password
This commit is contained in:
@@ -24,7 +24,7 @@ type TokenResponse struct {
|
|||||||
// @Router /admin/auth [post]
|
// @Router /admin/auth [post]
|
||||||
// @Bind body body
|
// @Bind body body
|
||||||
func (ctl *auth) Login(ctx fiber.Ctx, body *AuthBody) (*TokenResponse, error) {
|
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{
|
claim := ctl.jwt.CreateClaims(jwt.BaseClaims{
|
||||||
UserID: -20140202,
|
UserID: -20140202,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import { useRouter } from 'vue-router';
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
|
|
||||||
const username = ref('admin');
|
const username = ref('');
|
||||||
const password = ref('xixi@0202');
|
const password = ref('');
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const errorMessage = ref('');
|
const errorMessage = ref('');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user