/*
- * Sone - LoginPage.java - Copyright © 2010–2015 David Roden
+ * Sone - LoginPage.java - Copyright © 2010–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* {@inheritDoc}
*/
@Override
- protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
- super.processTemplate(request, templateContext);
+ protected void handleRequest(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
/* get all own identities. */
List<Sone> localSones = new ArrayList<Sone>(webInterface.getCore().getLocalSones());
Collections.sort(localSones, Sone.NICE_NAME_COMPARATOR);
*/
@Override
protected String getRedirectTarget(FreenetRequest request) {
- if (getCurrentSone(request.getToadletContext(), false) != null) {
+ if (getCurrentSoneWithoutCreatingSession(request.getToadletContext()) != null) {
return "index.html";
}
return null;
if (webInterface.getCore().getPreferences().isRequireFullAccess() && !toadletContext.isAllowedFullAccess()) {
return false;
}
- return getCurrentSone(toadletContext, false) == null;
+ return getCurrentSoneWithoutCreatingSession(toadletContext) == null;
}
}