Auto activated accounts for WP Discourse SSO?

I am using Wordpress with BuddyPress. Except this, there is no plugin related to login system.

When i add function in function.php

**Parse error** : syntax error, unexpected ')' in **functions.php** on line **1494**