Example #1
0
 private void DecodeToken(String token, ref string usr, ref string pwd, ref string fwd)
 {
     var dic = new Dictionary<String, String>();
     dic.SetToken(token);
     usr = dic["usr"];
     pwd = dic["pwd"];
     if (fwd.IsEmpty())
         dic.TryGetValue("fwd", out fwd);
 }
Example #2
0
 public ActionResult LoginSuccess(String token)
 {
     var dic = new Dictionary<String, String>();
     dic.SetToken(token);
     var fwd = "";
     dic.TryGetValue("fwd", out fwd);
     if (fwd.HasValue())
         return Redirect(fwd);
     return RedirectToAction("Index", "Shell");
 }