Home  >  Q&A  >  body text

java - 写了一个http接口,每次用admin账号登陆的时候,都跳转到别的页面,其他账号就可以?

这是接口地址
http://ip:端口/wlpt/api/user/login/{user_name}/{password}

当user_name是admin的时候,访问这个地址就会跳转到
http://localhost:8080/wlpt/Ad...这个地址。
其他的任何账号都可以,就不能是admin。

PHP中文网PHP中文网2741 days ago466

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-18 09:52:37

    This phenomenon is normal. It is estimated that you borrowed someone else’s ready-made code
    admin is the management account, so it will naturally be transferred to the management page
    (maybe the system defaults to admin being the administrator), you can use another username, and then set it to Administrator rights, see if you can also transfer to this page

    reply
    0
  • Cancelreply