File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
src/main/java/com/googlesource/gerrit/plugins/gitblit Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ limitations under the License.
9696 <artifactId >maven-compiler-plugin</artifactId >
9797 <version >2.5.1</version >
9898 <configuration >
99- <source >1.6 </source >
100- <target >1.6 </target >
99+ <source >1.7 </source >
100+ <target >1.7 </target >
101101 </configuration >
102102 </plugin >
103103 <plugin >
Original file line number Diff line number Diff line change 1818import org .slf4j .Logger ;
1919import org .slf4j .LoggerFactory ;
2020
21+ import com .gitblit .AvatarGenerator ;
22+ import com .gitblit .GravatarGenerator ;
2123import com .gitblit .IStoredSettings ;
2224import com .gitblit .guice .IPublicKeyManagerProvider ;
2325import com .gitblit .guice .ITicketServiceProvider ;
@@ -73,6 +75,7 @@ protected void configureServlets() {
7375 log .info ("Configuring Gitblit core services" );
7476 bind (IStoredSettings .class ).to (GitBlitSettings .class );
7577 bind (XssFilter .class ).to (JSoupXssFilter .class );
78+ bind (AvatarGenerator .class ).to (GravatarGenerator .class );
7679
7780 // bind complex providers
7881 bind (IPublicKeyManager .class ).toProvider (IPublicKeyManagerProvider .class );
Original file line number Diff line number Diff line change @@ -144,11 +144,11 @@ public UserModel authenticate(HttpServletRequest httpRequest) {
144144 String gerritToken = (String ) httpRequest .getAttribute ("gerrit-token" );
145145 httpRequest .getSession ().setAttribute (Constants .AUTHENTICATION_TYPE ,
146146 AuthenticationType .CONTAINER );
147-
147+
148148 if (Strings .isNullOrEmpty (gerritUsername )
149149 || Strings .isNullOrEmpty (gerritToken )) {
150150 return GerritToGitBlitUserModel .getAnonymous (projectControl );
151- } else {
151+ } else {
152152 return authenticateSSO (gerritUsername , gerritToken );
153153 }
154154 }
You can’t perform that action at this time.
0 commit comments