Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FixBug: update user.go, solve login bug interface conversion: #586

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jin06
Copy link

@jin06 jin06 commented Jul 21, 2023

  • Environment:
    DB: mysql
    orm: unuse

  • Description:

When I have installed go-admin, and I login on 127.0.0.1/admin/login use default admin/123456. I found this error
image

. This is because interface converse in line353 plugins/admin/models/user.go. And in my db, there is some menu that don't have parent

  • Solve

I remove the rows that without parent_id.

If parent_id is null, it will make error "interface conversion: interface {} is []uint8, not int64" in column menu_id
@Zyn0423
Copy link

Zyn0423 commented Oct 8, 2023

mysql 驱动版本问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants