diff --git a/hiboo/application/templates/application_writefreely.html b/hiboo/application/templates/application_writefreely.html
index 2c11fad204dbb2e738c85eb9e29da4434112a2ec..0a725ab2972de26d08de64d50e5da9346157f808 100644
--- a/hiboo/application/templates/application_writefreely.html
+++ b/hiboo/application/templates/application_writefreely.html
@@ -61,6 +61,12 @@ auth_endpoint      = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid,
     left join
         users wf
     ON h.profile_name = wf.username
+    where NOT EXISTS
+        (
+        SELECT  1
+        FROM    oauth_users oau
+        WHERE   wf.id = oau.user_id
+        );
 
     drop table tmp_hiboo;