示例#1
0
def reg_new_platform():
    nw_platform = input(
        'Enter platform e.g. Facebook,Google, Instagram etc.: ')
    nw_username = input('Enter account username/email: ')
    nw_password = input(
        'Type password or type AUTO to auto-generate password: '******'auto' or nw_password == 'AUTO'):
        nw_password = userAccounts.random_password(
            int(input('Enter preferred length: ')))
        print(f'Your password is {nw_password}')
    else:
        if (input('Confirm your password: '******'Passwords didn\'t match')
            main()
    new_account = userAccounts(nw_platform, nw_username, nw_password)
    userAccounts.add_account(new_account)
    print(f'Account {nw_username} added to platform {nw_platform}')
    if input('Type CP to copy password').lower() == 'cp':
        pyperclip.copy(nw_password)
        print(f'Password of {nw_username } copied to clipboard')
        if input(
                'Type LS to list all your credentials or press any key to return to main'
        ).lower() == 'ls':
            userAccounts.list_all_credentials()
        else:
            login_account()
    reg_new_platform()
示例#2
0
def reg_existing_platform():
    ex_platform = input(
        'Enter platform e.g. Facebook,Google, Instagram etc.: ')
    ex_username = input('Enter account username/email: ')
    if (userAccounts.account_exist(ex_platform, ex_username)):
        print(
            'Account on {ex_platform} already registered with username/email {ex_username}'
        )
    else:
        ex_password = input('Enter account password: '******'Account {ex_username} added to platform {ex_platform}')
 def setUp(self):
     self.new_account = userAccounts('instagram', 'cephaske254',
                                     '*****@*****.**', 'admin')
示例#4
0
 def setUp(self):
     self.new_account = userAccounts('instagram', 'kiira254', 'admin')