Why would you have userService.createLoginURL(userService.createLoginURL("
http://www.yatrafinder.com")), wrapped one in another like that? I guess
you should be doing something like `return
userService.createLoginURL("http://www.yatrafinder.com")`, that's it. Have
you ever checked Using the Users Service
guide<https://developers.google.com/appengine/docs/java/gettingstarted/usingusers>
?
BTW, SO is better in cases like this one.
On Saturday, April 28, 2012 9:22:45 PM UTC+2, Deepak Singh wrote:
>
> Still stuck with the issue...
>
> On Fri, Apr 27, 2012 at 10:04 PM, Deepak Singh
> <[email protected]>wrote:
>
>>
>> Hi,
>> GWT + GAE 1.6.3 project
>>
>> I am using UserService as follows
>>
>> UserService userService = UserServiceFactory.getUserService();
>> User user = userService.getCurrentUser();
>> if(user !=null || userService.isUserLoggedIn()) {
>> return user.getEmail();
>> }else if(user == null || !userService.isUserLoggedIn()) {
>> return userService.createLoginURL(userService.createLoginURL("
>> http://www.yatrafinder.com"));
>> }
>>
>> It works fine in development mode but in production,
>>
>> after user login it redirects the application to google.com instead of
>> redirecting to the given url - http://www.yatrafinder.com
>>
>> Can someone tell me why it is happening like this ?
>>
>> Thanks
>> Deepak Singh
>>
>
>
>
> --
> Deepak Singh
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/SCFNWLyf2mgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.