Ejemplo n.º 1
0
        public object Any(Reset request)
        {
            Db.DeleteAll<User>();
            Db.DeleteAll<UserAuth>();
            Db.DeleteAll<UserOAuthProvider>();

            var httpRes = base.RequestContext.Get<IHttpResponse>();
            httpRes.Cookies.DeleteCookie("ss-id");
            httpRes.Cookies.DeleteCookie("ss-pid");

            return new ResetResponse { Result = "OK " + request.Name };
        }
        //public
        object Any(Reset request)
        {
            Db.DeleteAll<User>();
            Db.DeleteAll<UserAuth>();
            Db.DeleteAll<UserAuthDetails>();

            var httpRes = (IHttpResponse)base.Request.Response;
            httpRes.Cookies.DeleteCookie("ss-id");
            httpRes.Cookies.DeleteCookie("ss-pid");

            return new ResetResponse { Result = "OK " + request.Name };
        }
Ejemplo n.º 3
0
        //public
        object Any(Reset request)
        {
            Db.DeleteAll <User>();
            Db.DeleteAll <UserAuth>();
            Db.DeleteAll <UserAuthDetails>();

            var httpRes = (IHttpResponse)base.Request.Response;

            httpRes.Cookies.DeleteCookie("ss-id");
            httpRes.Cookies.DeleteCookie("ss-pid");

            return(new ResetResponse {
                Result = "OK " + request.Name
            });
        }
Ejemplo n.º 4
0
        public object Any(Reset request)
        {
            Db.DeleteAll <User>();
            Db.DeleteAll <UserAuth>();
            Db.DeleteAll <UserOAuthProvider>();

            var httpRes = base.RequestContext.Get <IHttpResponse>();

            httpRes.Cookies.DeleteCookie("ss-id");
            httpRes.Cookies.DeleteCookie("ss-pid");

            return(new ResetResponse {
                Result = "OK " + request.Name
            });
        }