Exemple #1
0
 public static void ChangeUsername(this DragonContext ctx, string username, string newusername)
 {
     if (!ctx.IsAuthenticated())
     {
         throw new Exception("User not authenticated");
     }
     else
     {
         ctx.UserStore.UpdateKey(SERVICE_ID, username, newusername);
     }
 }