Skip to content

Commit

Permalink
hardcoding facebook redirect url since the user never will see it
Browse files Browse the repository at this point in the history
  • Loading branch information
csokol committed Jun 23, 2014
1 parent 3c98acb commit 2cfffab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Expand Up @@ -15,15 +15,14 @@
import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.routes.annotation.Routed;

@Routed
@Controller
public class FacebookAuthController extends BaseController{
public class FacebookAuthController extends BaseController {

@Inject private UrlValidator urlValidator;
@Inject private LoginMethodManager loginManager;
@Inject @Facebook private OAuthService service;

@Get
@Get("/sign-up/facebook/")
public void signupViaFacebook(String code, String state) {
if (code == null) {
includeAsList("messages", i18n("error", "error.signup.facebook.unknown"));
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/routes.properties
Expand Up @@ -13,8 +13,6 @@ AuthController.logout = /logout
CommentController.comment = /{onWhat}/{id}/comment
CommentController.edit = /comment/edit/{id}

FacebookAuthController.signupViaFacebook = /sign-up/facebook/

FlagController.addFlag = /{flaggableType}/{flaggableId}/mark
FlagController.topFlagged = /flagged

Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/routes.pt-BR.properties
Expand Up @@ -13,8 +13,6 @@ AuthController.logout = /logout
CommentController.comment = /{onWhat}/{id}/comentar
CommentController.edit = /comentario/editar/{id}

FacebookAuthController.signupViaFacebook = /cadastrar/facebook/

FlagController.addFlag = /{flaggableType}/{flaggableId}/marcar
FlagController.topFlagged = /marcadas

Expand Down

0 comments on commit 2cfffab

Please sign in to comment.