Skip to content

Instantly share code, notes, and snippets.

@Taik
Last active November 9, 2018 18:16
Show Gist options
  • Save Taik/836adbbf2721e70ef841bd967d67804a to your computer and use it in GitHub Desktop.
Save Taik/836adbbf2721e70ef841bd967d67804a to your computer and use it in GitHub Desktop.
--- a/auth.c 2016-08-25 09:31:15.000000000 -0400
+++ b/auth.c 2018-11-08 13:54:47.000000000 -0500
@@ -221,7 +221,7 @@
} else if (!strcmp(input_type, "text")) {
opt->type = OC_FORM_OPT_TEXT;
} else if (!strcmp(input_type, "password")) {
- if (!cstp_can_gen_tokencode(vpninfo, form, opt))
+ if (cstp_can_gen_tokencode(vpninfo, form, opt))
opt->type = OC_FORM_OPT_TOKEN;
else
opt->type = OC_FORM_OPT_PASSWORD;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment