这个类在 components 里面,会在应用一开始的时候就加载,用于最基础的用户验证,可以看到,该函数一开始只是简单地定义了两个用户 demo 和 admin,而密码也只是 demo 和 admin,如果所以如果你的用户很有限的话,可以直接在这里面修改添加用户就行,多的话我们后面再说。函数下面的 if else 分别是用于检查用户名和密码是否有效,出错的时候生成 ERROR_USERNAME_INVALID,ERROR_PASSWORD_INVALID 这些错误。总的来说,这里进行了真正的用户名密码验证,...
分类:
其他好文 时间:
2014-07-23 21:03:33
阅读次数:
297
当初学 Python 时,想要弄懂 Python 的错误信息的含义可能有点复杂。这里列出了常见的的一些让你程序 crash 的运行时错误。1)忘记在if,elif,else,for,while,class,def声明末尾添加 :(导致 “SyntaxError :invalid syntax”)该错...
分类:
编程语言 时间:
2014-07-23 20:46:25
阅读次数:
373
Variety Merchandise - top directory usually found large bags attract Australia on top of the range solution for blogs and articles about the content o...
分类:
其他好文 时间:
2014-07-23 12:31:06
阅读次数:
296
Invalid MyEclipse License - Discontinuing this MyEclipse operation这句话的意思是无效的许可证-停用此MyEclipse操作入门就是你的许可证过期了。。破解版本过期了。。。cmd->regedit 打开注册表,ctrl+F 查询所有"e...
分类:
系统相关 时间:
2014-07-23 12:15:56
阅读次数:
271
[enilu@enilu ~]$ mplayerbash: mplayer: command not found[enilu@enilu ~]$ yum list | grep mplayer^C^CExiting on Broken Pipe[enilu@enilu ~]$ [enilu@en.....
分类:
系统相关 时间:
2014-07-23 11:33:56
阅读次数:
490
处理【由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面】 详细错误:HTTP 错误 404.2 - Not Found. 由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path...
分类:
编程语言 时间:
2014-07-22 22:38:33
阅读次数:
239
my $line; my $content; open (FN,"D:\\PerlDemo\\parse.xml") or die "not found $!"; while($line=){ next if $. < 5; last if $. >10; $content.=$line; } close(FN); print "$content \n"; my $K=; my @R =qw...
分类:
其他好文 时间:
2014-07-22 22:37:53
阅读次数:
225
eclipse导入工程时出现了如下问题:Invalid project description. /Users/yang/Documents/workspace/BarCodeTest overlaps the location of another project: 'BarCodeTest'原因...
分类:
移动开发 时间:
2014-07-22 00:03:34
阅读次数:
301
instance method '*****' not found (return type defaults to 'id')...
分类:
其他好文 时间:
2014-07-21 23:27:44
阅读次数:
188