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

Web Api “/client/edit” POST方式提交报错 #347

Closed
yisier opened this issue Jan 2, 2020 · 1 comment
Closed

Web Api “/client/edit” POST方式提交报错 #347

yisier opened this issue Jan 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@yisier
Copy link

yisier commented Jan 2, 2020

报错信息如下:
image
经过尝试,注释掉下图中的代码后正常运行
image

@yisier yisier added the bug Something isn't working label Jan 2, 2020
@cnlh
Copy link
Collaborator

cnlh commented Jan 6, 2020

可以在登录验证里面,使用或者新建一个身份类型给api用户,然后在这里如果是api用户,不进行Session判断
or
直接尝试给api用户session isAdmin设置为true

欢迎修改后直接pr

kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants