From 21662ae9ee1303038bb628382685454be2a31871 Mon Sep 17 00:00:00 2001
From: Frederik Lindenaar <frederik@lindenaar.nl>
Date: Tue, 11 Oct 2016 11:23:59 +0200
Subject: [PATCH] bumped version number (forgot to do that with the last fix) updated the URL of the script in my GitLAB (moved the repository)

---
 privacyidea-checkotp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 privacyidea-checkotp

diff --git a/privacyidea-checkotp b/privacyidea-checkotp
old mode 100644
new mode 100755
index 6dae606..5b5747f
--- a/privacyidea-checkotp
+++ b/privacyidea-checkotp
@@ -3,8 +3,8 @@
 # privacyidea-checkotp	- shell implementation of the PrivacyIDEA OTP check for
 #			  integration with FreeRadius on systems without perl
 #
-# Version 1.0, latest version, documentation and bugtracker available at:
-#		https://gitlab.lindenaar.net/scripts/privacyidea-checkotp
+# Version 1.1, latest version, documentation and bugtracker available at:
+#		https://gitlab.lindenaar.net/privacyidea/checkotp
 #
 # Copyright (c) 2015 Frederik Lindenaar
 #
@@ -51,11 +51,11 @@ otpresult=`/usr/bin/curl -s "$URL" --data-urlencode "user=$LOGIN" --data-urlenco
 # Extract the status of the request from the returned JSON
 otpstatus=`echo $otpresult | sed 's/^{.*"result": *{ *"status": *true, *"value": *\(.*\) *},.*}/\1/'`
 
-if [ "$otpstatus" = "true" ]; then 
+if [ "$otpstatus" = "true" ]; then
 #  echo $LOGIN did authenticate $otpresult
   echo Auth-Type=PrivacyIDEA
   exit 0
-elif [ "$otpstatus" = "false" ]; then 
+elif [ "$otpstatus" = "false" ]; then
 #  echo $LOGIN did not authenticate $otpresult
   echo Auth-Type=REJECT
   exit 1
--
libgit2 0.22.2