mvc - 用户名/密码方法帮助 [英] mvc - username/password method help

查看:69
本文介绍了mvc - 用户名/密码方法帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



我正在编写寻求,如何构建逻辑以便能够调用api控制器查询字符串,如api / user?username = 9999&password = 6666,如果成功则返回消息。我的目标是能够调用用户名和密码并返回消息,如果它们成功与否。



我有一个名为api_login的实体类。我有点陷入如何检索api_login细节,例如我需要实现什么样的逻辑/方法。我是否需要为用户名或'POST'方法调用'GET'方法?



我计划构建业务逻辑层中的逻辑,如Data类,并调用数据方法从数据类到api控制器类用户。





任何帮助或指导如何处理这个问题都会非常有帮助。

非常感谢。

Dear all,

I am writing to seek, in how to construct logic for to be able to call api controller query string such as api/user?username=9999&password=6666 and return message if successful. I a aiming to be able to call username and password and return message, if they are successful or not.

I have entity class called api_login. I am a little stuck in how do I retrieve api_login details, for example what kind of logic/method would i need to implement. Would i need to call 'GET' method for username or 'POST' method?

I plan to construct the logic in business logic layer such as Data class and call the data methods from data class into api controller class users.


Any help or guidance, in how do go about tackling this issue, would be very helpful.
Many thanks.

推荐答案

查询字符串中传递的参数是CLEAR TEXT。您是否真的要以易于阅读和截取的格式传递用户名和密码?
Parameters passed in the query string are in CLEAR TEXT. Are you seriously going to pass a username and password in a format that is easily read and intercepted??


这篇关于mvc - 用户名/密码方法帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆