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
#! /usr/bin/env python | |
import secure | |
import pexpect | |
# the file containing the list of servers to log into | |
input_file = "script_list" | |
# The login creds | |
user = secure.USER |
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
from flask import (render_template, Blueprint, request, abort, make_response, jsonify,redirect, url_for, flash , get_flashed_messages) | |
from flask_login import login_user,logout_user,login_required | |
from ..library import Metatags, encode_auth_token, token_required, logged_user | |
from .models import UserModel | |
from .. import db | |
import uuid | |
from werkzeug.security import check_password_hash, generate_password_hash | |
users = Blueprint('users', __name__) |
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
from flask import (render_template, Blueprint, request, abort, make_response, jsonify,redirect, url_for, flash , get_flashed_messages) | |
from flask_login import login_user,logout_user,login_required | |
from ..library import Metatags, encode_auth_token, token_required, logged_user | |
from .models import UserModel | |
from .. import db | |
import uuid | |
from werkzeug.security import check_password_hash, generate_password_hash | |
users = Blueprint('users', __name__) |
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
// Incrementing OFFLINE_VERSION will kick off the install event and force | |
// previously cached resources to be updated from the network. | |
const OFFLINE_VERSION = 1; | |
const CACHE_NAME = 'FREELANCE-PROFILESS'; | |
const website_base_url = 'http://localhost'; | |
// Customize this with your URL. | |
// TODO- use Flask Assets to bundle some of the adminLTE css files and js files togather, | |
// TODO- also bundle adminLTE Files with flask bundler... |
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
Pocket Money Wallet Pty LTD |
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
const nodemailer = require('nodemailer'); | |
const Mailgen = require('mailgen'); | |
const config = require("config"); | |
/** | |
* | |
* Used to send messages such as | |
* Login Codes, Email Verification Codes , Transaction Activation Codes, such as Withdrawals | |
**/ | |
const mailGenerator = new Mailgen({ |
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 unittest | |
import uuid, time | |
from .. import db, create_app | |
from flask import current_app | |
from ..library import config | |
def test_hireme_freelance_job_model(): | |
from ..hireme.models import FreelanceJobModel | |
from ..users.models import UserModel | |
if not current_app: |
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 * as React from 'react'; | |
import { useState } from 'react'; | |
import { useLogin, useNotify, Notification, defaultTheme } from 'react-admin'; | |
import { ThemeProvider } from '@material-ui/styles'; | |
import { createMuiTheme } from '@material-ui/core/styles'; | |
const MyLoginPage = ({ theme }) => { | |
const [email, setEmail] = useState(''); | |
const [password, setPassword] = useState(''); | |
const login = useLogin(); |
OlderNewer