Ejemplo n.º 1
0
        public IList <SecretQuestion> GetUserSecretQuestions(string token)
        {
            var process = GetMutiFactorProcess(token);
            var qs      = _processService.GetUserSecretQuestions(process.Login);

            return(qs.Select(q => q.ToModel()).ToList());
        }
Ejemplo n.º 2
0
 public IList<SecretQuestion> GetUserQuestions(string token) {
   var process = GetActiveProcess(token);
   if(process == null)
     return new List<SecretQuestion>();
   var qs = _processService.GetUserSecretQuestions(process.Login);
   var list = qs.Select(q => q.ToModel()).ToList();
   return list; 
 }
Ejemplo n.º 3
0
        public IList <SecretQuestion> GetUserQuestions(string token)
        {
            var session = Context.OpenSession();
            var process = GetActiveProcess(session, token);

            if (process == null)
            {
                return(new List <SecretQuestion>());
            }
            var qs   = _processService.GetUserSecretQuestions(process.Login);
            var list = qs.Select(q => q.ToModel()).ToList();

            return(list);
        }