Skip to content
Snippets Groups Projects
Commit e31d2487 authored by Nico's avatar Nico
Browse files

Make sure passwords on registration match

parent a15aa17a
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,9 @@ class StartupContainer(Container): ...@@ -25,6 +25,9 @@ class StartupContainer(Container):
def on_password_button_clicked(self, button): def on_password_button_clicked(self, button):
password = self.builder.get_object("password_entry").get_text() password = self.builder.get_object("password_entry").get_text()
password_confirm = self.builder.get_object("password_confirm_entry").get_text()
if password != password_confirm:
raise Exception("Passwords do not match")
self._api.register((self.username, password), self._startup_finished) self._api.register((self.username, password), self._startup_finished)
def on_login_pressed(self, button): def on_login_pressed(self, button):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment