コード例 #1
0
        public HttpResponseMessage LogOn(LogOn logOn)
        {
            //msg.url = "http://my.company.com/login";

            //if (SecurityManager.IsTokenValid(token))
            //{
            ForToken ret = new ForToken();
            ret = repository.LogOn(pclsCache, logOn.PwType, logOn.username, logOn.password, logOn.role);
            return new ExceptionHandler().LogOn(Request,ret);          
        }
コード例 #2
0
 public HttpResponseMessage LogOn(LogOn logOn)
 {
     int ret = repository.LogOn(logOn.PwType, logOn.username, logOn.password, logOn.role);
     return new ExceptionHandler().LogOn(ret);
 }