Update no_sso login script with Moodle 2.5 changes in standard login script