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
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'; |
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> | |
<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"> |
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
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) { |
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 request = require("request"), | |
querystring = require("querystring"); | |
module.exports = function(){ | |
this.get = function (options,callback){ | |
var Options = function(options){ | |
this.method = "GET"; |