Talk:Authentication plugins

Revision as of 20:01, 23 September 2013 by Ryan Foster (talk | contribs) (prevent_local_passwords() documentation)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To make the title and description translations of the plugin work, you must also create the class constructor.

prevent_local_passwords() documentation

The current documentation states:

Indicates if password hashes should be stored in local moodle database.

The code in auth/none has no comments regarding this method. Am I to assume that using "return false" allows password hashes to be stored in Moodle's database and "return true" prevents password hashes from being stored in Moodle's database?

--Ryan Foster (talk) 04:21, 18 September 2013 (WST)

I found that there were comments in lib/authlib.php.
--Ryan Foster (talk) 04:01, 24 September 2013 (WST)

Overriding functions

It seems there is some ambiguity about which functions should be overridden. For example, I'd imagine that get_title() and get_description() are not meant to be overridden, but there appears to be nothing stopping a developer from doing so. Should this be marked here in the docs, commented in the code, or disallowed by making such functions "final"?

--Ryan Foster (talk) 06:50, 21 September 2013 (WST)