Authentication: Unique Login

Maintained by Picture of António VilelaAntónio Vilela
This authentication plug-in prevents that each one Moodle user has more than one active session simultaneously.
764 sites
29 fans
Current versions available: 3

The goal of this authentication plug-in is to make sure that each user in Moodle only has one active session simultaneously.

To work properly, the plugin needs to be on top of the authentication plugins list and Database-stored sessions are enabled. Check the module documentation to more information.

This plugin is being maintained by ED-ROM, the portuguese Moodle Partner.


Screenshot #0


Picture of António Vilela
António Vilela (Lead maintainer): Maintainer
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of BRIAN NYATHI
    Fri, Mar 1, 2019, 3:38 AM
    To António Vilela
    thank you for your feedback Sir. l was even considering using OAuth_2_authentication, where by students can login using their gmail, facebook accounts. Then it crossed my mind that some students can easily create those accounts only to use it in moodle, hence having no absolute problem in sharing it with their friends. Since those facebook and gmail will only be created to be used in moodle login only. its a very tricky situation. l wonder how others have gone around this especially those who are offering paid membership courses to their students. For now lam stuck, but l will keep on searching hope to get something soon.
  • Picture of António Vilela
    Fri, Mar 1, 2019, 3:49 AM
    If you create the accounts manually using their email, and then users have to login using Facebook, I don't see any problem. Or does Facebook allow the same email on two accounts? I don't think it is possible.
  • Picture of BRIAN NYATHI
    Fri, Mar 1, 2019, 3:58 AM
    To António Vilela
    l think you have a point there and l think thats my best bet. l will definitely work towards that direction. the facebook and gmail login. Ang again, thank you very much for dedicating you time to help me get the solution. Thank you António.
  • Picture of BRIAN NYATHI
    Sun, Mar 3, 2019, 5:47 PM
    To António Vilela
    l would like to thank you for taking your time, all the efforts you made to point me to the right direction. As you have suggested. l have decided to use the OAuth 2 authentication which works like a charm! for those who are interested here is the link: and here is my login page to my moodle LMS (having incorporated facebook and Google login)
  • Picture of António Vilela
    Tue, Mar 5, 2019, 12:36 AM
    To Brian Nyathi
    You are welcome. Happy to know you found a solution!
  • Picture of arturo guinto
    Tue, Mar 19, 2019, 2:12 PM
    Hello Is this applicable for SSO authentication esp.. SAML?
  • Picture of António Vilela
    Tue, Mar 19, 2019, 11:42 PM
    To arturo guinto
    The plug-in will not work because SAML send the user out of moodle to login.
  • Picture of Alejandro Novoa
    Thu, Sep 5, 2019, 12:20 AM
    Hi, I don't see an option to install it directly on my 3.7 installation
    Is it not compatible with 3.7?
  • Picture of Vijaya Kumar
    Sat, Sep 7, 2019, 3:05 PM
    when i use unique id plugin shows unable to access- invalid login...please help
  • Picture of António Vilela
    Mon, Sep 9, 2019, 9:38 PM
    @Alejandro Novoa The plugin has been successfully tested in version 3.6 and 3.7.
    @Vijaya Kumar Do not set Unique Login as a user authentication method. Please see the correct use in
  • Picture of Vijaya Kumar
    Thu, Sep 12, 2019, 6:31 PM
    Thank you for your quick response it's working smile
  • Picture of JJ Prade
    Sat, May 30, 2020, 4:55 AM
    Hi Antonio, this plugin working in Moodle 3.8.3?....Thanks regards
  • Picture of António Vilela
    Tue, Jun 9, 2020, 4:31 PM
    @JJ Prade The plugin has been successfully tested in version 3.8.
  • Picture of aziz vefa
    Mon, Dec 7, 2020, 12:55 PM
    It works fine. I recommend to anybody who uses this plugin that, follow the installation instructions. Moving the plug-in to the top position is very important. Otherwise, it may not work with some of the 2-factors verification plugins.
    Thank you, Antonio.
  • Picture of Fran González
    Wed, Dec 23, 2020, 5:33 PM
    When will version 3.9 be out? Any idea? Does version 3.8 work ok with 3.9
    Thanks and Merry Xmas.
Please login to post comments