This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Telerik.Sitefinity.Modules.Pages; | |
using Telerik.Sitefinity.Multisite; | |
using Telerik.Sitefinity.Pages.Model; | |
using Telerik.Sitefinity.Security; | |
using Telerik.Sitefinity.Security.Model; | |
namespace SitefinityWebApp.Api.Services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void CreateUserFromSaml(Guid userId, string userEmail) | |
{ | |
try | |
{ | |
var user = userManager.GetUser(userId); | |
if (user != null) | |
{ | |
var firstName = Cache.GetData(userEmail + AuthConstant.FirstNameKey).ToString(); | |
var lastName = Cache.GetData(userEmail + AuthConstant.LastNameKey).ToString(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Newtonsoft.Json; | |
@model SitefinityWebApp.Mvc.Models.ReportModel | |
@{ | |
Layout = "~/Mvc/Views/Shared/Admin/_AdminLayout.cshtml"; | |
} | |
@section head{ | |
<style> | |
thead[role=rowgroup] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace SparksCloudFront | |
{ | |
public class SparksAppSetting | |
{ | |
public CloudFront CloudFront { get; set; } | |
} | |
public class CloudFront | |
{ | |
public string Profile { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="app" ng-controller="LayoutCtrl"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>{siteName}</title> | |
<style> | |
img { | |
width: 100px; | |
height: 100px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('https'), | |
fs = require('fs'), | |
readline = require('readline'); | |
const baseUrl = process.argv.slice(2)[0]; // Page domain url e.g. https://www.google.com | |
const processName = process.argv.slice(2)[1]; // Filename without <filename>_links.txt | |
var download = function (url, dir, dest, cb) { | |
if (!fs.existsSync(dir)) { | |
fs.mkdirSync(dir, { recursive: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (ViewBag.IsUserInRole) | |
{ | |
<section class="container"> | |
<div class="row" style="margin: 30px"> | |
<div> | |
<h3>Migration Service</h3> | |
</div> | |
<br> | |
<div class="col-12 form-group"> | |
<label>Service:</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="app" ng-controller="LayoutCtrl"> | |
<head> | |
<title>{siteName}</title> | |
<style> | |
img { | |
width: 100px; | |
height: 100px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomFormModel | |
{ | |
public Guid Id { get; set; } | |
public string FormTitle { get; set; } | |
public string SuccessMessage { get; set; } | |
public List<CustomFormField> Fields { get; set; } = new List<CustomFormField>(); | |
} | |
public class CustomFormField | |
{ |
NewerOlder