Don't try to login without credentials
authorBenoît Fontaine <benoitfontaine.ba@gmail.com>
Sat, 10 Mar 2018 15:51:26 +0000 (16:51 +0100)
committerBenoît Fontaine <benoit.fontaine@acft.fr>
Sat, 10 Mar 2018 16:10:37 +0000 (17:10 +0100)
fstogedcom.py
translation.py

index bdf98369c3cd3eef99e7c474d8ffe85aeefd4065..d9cc9dcb0b2ce823884d15b74519ff6c88b3b4d5 100644 (file)
@@ -287,7 +287,7 @@ class Options(Frame):
         entry_ancestors = EntryWithMenu(self, textvariable=self.ancestors, width=5)
         label_descendants = Label(self, text=_('Number of generations to descend'))
         entry_descendants = EntryWithMenu(self, textvariable=self.descendants, width=5)
-        btn_add_indi = Button(btn, text=_('Add a Familysearch ID'), command=self.add_indi)
+        btn_add_indi = Button(btn, text=_('Add a FamilySearch ID'), command=self.add_indi)
         btn_spouses = Checkbutton(self, text='\t' + _('Add spouses and couples information'), variable=self.spouses)
         btn_ordinances = Checkbutton(self, text='\t' + _('Add Temple information'), variable=self.ordinances)
         btn_contributors = Checkbutton(self, text='\t' + _('Add list of contributors in notes'), variable=self.contributors)
@@ -368,6 +368,11 @@ class Download(Frame):
 
     def login(self):
         global _
+        username = self.sign_in.username.get()
+        password = self.sign_in.password.get()
+        if not (username and password):
+            messagebox.showinfo(message=_('Please enter your FamilySearch username and password.'))
+            return
         self.btn_valid.config(state='disabled')
         self.info(_('Login to FamilySearch...'))
         self.logfile = open('download.log', 'w', encoding='utf-8')
index bda8595e168e730a65346c0fe245faf472df3d6d..f5164df3e4a729f7e8ea54d151498d333b24e780 100644 (file)
@@ -263,4 +263,7 @@ translations = {
     'Elapsed time: %s:%s': {
         'fr': 'Temps écoulé : %s:%s',
     },
+    'Please enter your FamilySearch username and password.': {
+        'fr': "Veuillez entrer votre nom d'utilisateur et votre mot de passe FamilySearch."
+    }
 }