summaryrefslogtreecommitdiffstats
path: root/mdkapplet-restricted-helper
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet-restricted-helper')
-rwxr-xr-xmdkapplet-restricted-helper12
1 files changed, 11 insertions, 1 deletions
diff --git a/mdkapplet-restricted-helper b/mdkapplet-restricted-helper
index 7835fd92..2d5a9219 100755
--- a/mdkapplet-restricted-helper
+++ b/mdkapplet-restricted-helper
@@ -84,7 +84,17 @@ sub get_restricted_authentication() {
create_okcancel($w, N("Next"), N("Cancel")),
]);
- $res ? add_restricted_medium($email_w->get_text, $password) : 0;
+ my $email = $email_w->get_text;
+ if ($res) {
+ if ($email && $password) {
+ add_restricted_medium($email, $password);
+ } else {
+ interactive->vnew->ask_warn(N("Error"), N("Password & email cannot be empty."));
+ goto &get_restricted_authentication;
+ }
+ } else {
+ 0;
+ }
}
sub get_from {