Skip to content
Open
10 changes: 6 additions & 4 deletions examples/user_onboarding__create_and_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
- For production, leverage the get_user_vault function to create and log into vaults, along with any KeeperCommander method to add content.
'''

USER_A = '[email protected]'
USER_B = '[email protected]'
USER_A = '[email protected]'
USER_B = '[email protected]'
CSV_FILE = 'csv_file.csv'
JSON_FILE = 'json_file.json'

from keepercommander.params import KeeperParams
from keepercommander import api
Expand Down Expand Up @@ -162,10 +164,10 @@ def get_user_vault(admin_params, user, folder=None, password_length=20, replace_

from keepercommander.importer.imp_exp import _import as run_import
# Run CSV import for User A
run_import(user_a_params, 'csv', 'csv_file.csv')
run_import(user_a_params, 'csv', CSV_FILE)

# Run JSON import for User B
run_import(user_b_params, 'json', 'json_file.json')
run_import(user_b_params, 'json', JSON_FILE)

# Re-expire Master Passwords
eu.execute(admin_params, email=[USER_A,USER_B], expire=True, force=True)
136 changes: 67 additions & 69 deletions keepercommander/auth/console_ui.py

Large diffs are not rendered by default.

Loading