Skip to content

Instantly share code, notes, and snippets.

View Cartman720's full-sized avatar

Aren Hovsepyan Cartman720

View GitHub Profile
var request = require("request"),
querystring = require("querystring");
module.exports = function(){
this.get = function (options,callback){
var Options = function(options){
this.method = "GET";
app.controller("ProfileController", function ($scope, $http, $cookies, $localStorage) {
angular.element(".profile-link").addClass("active-link");
$http.get("/User/Info", { cache: true }).then(function (response) {
$scope.user = response.data.Value;
$scope.isTwoFactor = Boolean($scope.user.Auth);
});
$scope.setKey = function(){
$http.post("/User/Twoauth/Set", {secret:$scope.generatedKey.Secret,code:$scope.generatedKey.Code}).then(function (response) {
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="HandheldFriendly" content="true"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
import React, { Component } from 'react'
import { withStyles } from 'material-ui/styles';
import Button from 'material-ui/Button';
import AddIcon from 'material-ui-icons/Add';
import Dialog from 'material-ui/Dialog';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import IconButton from 'material-ui/IconButton';
import Typography from 'material-ui/Typography';
import CloseIcon from 'material-ui-icons/Close';