Esempio 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());
        }
Esempio 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; 
 }
Esempio 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);
        }