summaryrefslogtreecommitdiff
path: root/service/pixelated/config
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2016-01-25 10:27:39 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2016-01-25 10:27:39 +0100
commit10117a698e5ffb1f74017129824b4c1b6a4ec73e (patch)
tree2a609fd980a6d8bd1319c5d7e188708af6bf17f6 /service/pixelated/config
parentfd7f55a40ba1c5b32dd22e7856c37484f81d8789 (diff)
Add integrity-check maintenance command
Diffstat (limited to 'service/pixelated/config')
-rw-r--r--service/pixelated/config/arguments.py1
-rw-r--r--service/pixelated/config/leap.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/config/arguments.py b/service/pixelated/config/arguments.py
index d8a18c16..6a609b73 100644
--- a/service/pixelated/config/arguments.py
+++ b/service/pixelated/config/arguments.py
@@ -52,6 +52,7 @@ def parse_maintenance_args():
subparsers.add_parser('dump-soledad', help='dump the soledad database')
subparsers.add_parser('sync', help='sync the soledad database')
subparsers.add_parser('repair', help='repair database if possible')
+ subparsers.add_parser('integrity-check', help='run integrity check on database')
return parser.parse_args()
diff --git a/service/pixelated/config/leap.py b/service/pixelated/config/leap.py
index 30964f28..dd475629 100644
--- a/service/pixelated/config/leap.py
+++ b/service/pixelated/config/leap.py
@@ -65,7 +65,7 @@ def initialize_leap_single_user(leap_provider_cert,
config, provider = initialize_leap_provider(provider, leap_provider_cert, leap_provider_cert_fingerprint, leap_home)
- leap_session = yield authenticate_user(provider, username, password)
+ leap_session = yield authenticate_user(provider, username, password, initial_sync=initial_sync)
defer.returnValue(leap_session)