Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8256

Re: External database authentication not working with custom profile field

$
0
0
by Sudhanshu Verma.  

Due to some reasons I could not upgrade to M29 or M3 sad

In Moodle I have created a custom menu profile field Gender and there are two choices 'Male and second one is Female.

When in my external database table Gender field have value 'Male' or 'Female' and when I run db sync process does not take these value and at the time when user login in Moodle it gives error.  Error tell that field Gender can not be null.

But when in external database when I convert value Male->0 and Female->1 and run db sync then these values are Moodle taking and user profile fields are property updating.

This is happening with all menu types of profile field.

I have done some changes in the auth.php's get_userinfo($username) method after that It is working.

Thankyou so much for your great support smile

 

 



Viewing all articles
Browse latest Browse all 8256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>