This file contains hidden or 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
version: "3.4" | |
services: | |
sqlserver: | |
image: mcr.microsoft.com/mssql/server:2017-CU8-ubuntu | |
restart: always | |
environment: | |
- ACCEPT_EULA=Y | |
- SA_PASSWORD=123Aa321 | |
- MSSQL_COLLATION=Latin1_General_CI_AS |
This file contains hidden or 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
declare @schema varchar(100) = 'schema' | |
declare @tableName varchar(100) = 'tableName' | |
declare @objectId bigint; | |
select @objectId = t.object_id | |
from sys.tables t | |
inner join sys.schemas s on s.schema_id = t.schema_id | |
where s.name = @schema and t.name = @tableName |
This file contains hidden or 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
declare @schema varchar(100) = 'schema' | |
declare @tableName varchar(100) = 'tableName' | |
declare @objectId bigint; | |
select @objectId = t.object_id | |
from sys.tables t | |
inner join sys.schemas s on s.schema_id = t.schema_id | |
where s.name = @schema and t.name = @tableName |
This file contains hidden or 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
declare @schema varchar(100) = 'schema' | |
declare @tableName varchar(100) = 'tableName' | |
declare @objectId bigint; | |
select @objectId = t.object_id | |
from sys.tables t | |
inner join sys.schemas s on s.schema_id = t.schema_id | |
where s.name = @schema and t.name = @tableName |
This file contains hidden or 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
declare @schema varchar(100) = 'schema' | |
declare @tableName varchar(100) = 'tableName' | |
declare @objectId bigint; | |
select @objectId = t.object_id | |
from sys.tables t | |
inner join sys.schemas s on s.schema_id = t.schema_id | |
where s.name = @schema and t.name = @tableName |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.IdentityModel.Tokens.Jwt; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Security.Claims; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains hidden or 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
angular.module('app') | |
.factory("authentication", ["$http", "$q", "$window", authentication]); | |
function authentication($http, $q, $window) { | |
var user; | |
function login() { | |
// check if the user already exists for this session |