Python cherrypy密码表单

Python cherrypy密码表单,python,html,forms,passwords,cherrypy,Python,Html,Forms,Passwords,Cherrypy,我正在尝试使用下面的表单为我正在开发的应用程序进行用户注册和登录 <html><form method="get" action="login"> Email Address: <input name="email" type="text"><br/> Password: <input name="password" type="password"><br/> <input type="submit" value="

我正在尝试使用下面的表单为我正在开发的应用程序进行用户注册和登录

<html><form method="get"  action="login">
Email Address: <input name="email" type="text"><br/>
Password: <input name="password" type="password"><br/>
<input type="submit" value="Submit" />
</form>
</html>

如何阻止这种情况发生?

它们出现在URL中,因为您的表单使用的是GET方法,您应该使用POST并在服务器端处理这些值。

Shawn指出,除了POST/GET混淆之外,您可能有兴趣看看Cherrypy的内置功能。

谢谢,您知道它是否支持盐渍哈希吗?我自己没有用过;我将CherryPy与谷歌应用程序引擎(GoogleAppEngine)结合使用,谷歌应用程序引擎自己进行身份验证;您必须创建一个函数,用于根据存储的任何适合您的凭据验证提供的密码。使用盐渍、哈希密码并不比任何其他选项更难。您不会为此使用登录表单;但是为了安全,您必须使用ssl(auth basic通过网络发送未加密的密码)
http://localhost:8080/login?email=123&password=123&submit=Submit