Exemplo n.º 1
0
        public object Any(UserAuths request)
        {
            var response = new UserAuthsResponse {
                UserSession    = base.UserSession,
                Users          = Db.Select <User>(),
                UserAuths      = Db.Select <UserAuth>(),
                OAuthProviders = Db.Select <UserOAuthProvider>(),
            };

            response.UserAuths.ForEach(x => x.PasswordHash = "[Redacted]");
            response.OAuthProviders.ForEach(x =>
                                            x.AccessToken = x.AccessTokenSecret = x.RequestTokenSecret = "[Redacted]");

            return(response);
        }
Exemplo n.º 2
0
        public object Any(UserAuths request)
        {
            var response = new UserAuthsResponse {
                UserSession = base.UserSession,
                Users = Db.Select<User>(),
                UserAuths = Db.Select<UserAuth>(),
                OAuthProviders = Db.Select<UserOAuthProvider>(),
            };

            response.UserAuths.ForEach(x => x.PasswordHash = "[Redacted]");
            response.OAuthProviders.ForEach(x =>
                x.AccessToken = x.AccessTokenSecret = x.RequestTokenSecret = "[Redacted]");

            return response;
        }