auth = $auth; $this->registrar = $registrar; //注册auth.attemp事件 //加入验证码的验证 $this->auth->attempting(function()use($request){...
                            
                            
                                分类:
其他好文   时间:
2015-04-07 13:41:06   
                                阅读次数:
270
                             
                    
                        
                            
                            
                                http://docs.oracle.com/javase/7/docs/technotes/guides/net/http-auth.htmlHttp AuthenticationOverviewThe HTTP protocol handler implements a number of au...
                            
                            
                                分类:
编程语言   时间:
2015-04-05 18:45:48   
                                阅读次数:
153
                             
                    
                        
                            
                            
                                以TOMCAT6配置方式为例
第一步,在tomcate/conf/context下面加入以下资源定义标签,包含JNDI命名,授权,类型,数据库驱动类,数据库连接路径,帐号,密码,最大活动数,最小空闲数,最大等待数等信息
<Resource name="jdbc/mydb"
       auth="Container"
       type="javax.sql.DataSource...
                            
                            
                                分类:
数据库   时间:
2015-04-03 09:28:33   
                                阅读次数:
145
                             
                    
                        
                            
                            
                                /* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2010, Red Hat Inc. or third-party contributors as * indicated by the @auth...
                            
                            
                                分类:
编程语言   时间:
2015-04-01 11:15:31   
                                阅读次数:
135
                             
                    
                        
                            
                            
                                /* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2010, Red Hat Inc. or third-party contributors as * indicated by the @auth...
                            
                            
                                分类:
编程语言   时间:
2015-04-01 11:13:49   
                                阅读次数:
217
                             
                    
                        
                            
                            
                                当使用mysql的新版本是,连接老版本的mysql,就会有可能报:ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' ena...
                            
                            
                                分类:
数据库   时间:
2015-03-31 19:38:26   
                                阅读次数:
274
                             
                    
                        
                            
                            
                                package com.example.anothersignintest; import java.io.IOException; import com.google.android.gms.auth.GoogleAuthException; import com.google.android.g...
                            
                            
                                分类:
Web程序   时间:
2015-03-31 17:22:34   
                                阅读次数:
257
                             
                    
                        
                            
                            
                                1、项目结构2、关键代码:data6.settings.pyINSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.con...
                            
                            
                                分类:
数据库   时间:
2015-03-30 22:37:56   
                                阅读次数:
187
                             
                    
                        
                            
                            
                                1、项目结构:2、关键代码:settings.pyINSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib....
                            
                            
                                分类:
其他好文   时间:
2015-03-29 19:33:59   
                                阅读次数:
378
                             
                    
                        
                            
                            
                                Apache Server下,可以对单个目录进行访问控制,如ip过滤,要求用户名密码进行Basic Auth等。下面使用 .htaccess来实现Auth.首先在配置文件 http.conf里,对所要控制的目录,开启Override功能,如果在这里设置为AllowOverride none, .ht...
                            
                            
                                分类:
数据库   时间:
2015-03-28 18:30:51   
                                阅读次数:
191