Ejemplo n.º 1
0
        public static void SetActiveUser(DataUserTokens response)
        {
            var user = FindOrInsertUser(response.User, response.User.Email);

            user.Selected            = true;
            user.IsActive            = true;
            Session.ActiveUser       = user;
            Session.ActiveUser.Name += " (You)";
            Session.Token            = response.Tokens;
        }
Ejemplo n.º 2
0
        public static void SetActiveUser(DataUserTokens response)
        {
            var user = FindOrInsertUser(response.User, response.User.Email);

            user.Selected      = true;
            user.IsActive      = true;
            Session.ActiveUser = user;
            if (!Session.ActiveUser.Name.Contains("You"))
            {
                Session.ActiveUser.Name += (" (You)");
            }
            Session.Token = response.Tokens;
        }