2017 © Pedro Peláez
 

library roleuserbridge

ZfcUser/BjyAuthorize Bridge for auto-adding User to the user_role_table from BjyAuthorize. including fix bc break

image

darkmatus/roleuserbridge

ZfcUser/BjyAuthorize Bridge for auto-adding User to the user_role_table from BjyAuthorize. including fix bc break

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

ZfcUser-BjyAuthorize-Bridge

ZfcUser/BjyAuthorize Bridge for auto-adding User to the user_role_table from BjyAuthorize, (*1)

Requires: ZF2 latest master, ZfcUser, BjyAuthorize, (*2)

Installation:, (*3)

  • Install ZfcUser and BjyAuthorize as shown on thier pagesdingus
  • Copy the ZfcUser/BjyAuthorize Bridge into your module or vendor directory
  • Copy 'roleuserbridge/config/roleuserbridge.config.php' to your 'config/autoload/'
  • add a entry to your application.config.php with 'RoleUserBridge'

Comments:, (*4)

The bridge works by automatically adding an entry to the user_role_linker table so
that new users are automatically registered with a 'user' role., (*5)

At this moment there is no administration backend to change the role of a User after
registration (only with DB-Tools).
If you need an admin you must edit your user_role_linker table manually., (*6)

If you have created your own linker-table, you must edit the linker.config.php with your own table name.
In linker.config.php you must also configure the id of the user record as you have set it up in
your 'user_role' table. For example, if your role table looks like this:, (*7)

mysql> SELECT * FROM `user_role`;
+----+---------+------------+-----------+
| id | role\_id | is\_default | parent\_id |
+----+---------+------------+-----------+
|  1 | guest   |          1 |      NULL |
|  2 | user    |          0 |      NULL |
|  3 | admin   |          0 |         2 |
+----+---------+------------+-----------+
3 rows in set (0.00 sec)

you should modify the roleuserbridge.config.php so that
'user_role_id' => 2, (*8)

!!!ATTENTION!!!, (*9)

For compatibility with packagist the repo was renamed to lowercase characters, (*10)

The Versions

15/07 2016

dev-master

9999999-dev https://github.com/darkmatus/roleuserbridge

ZfcUser/BjyAuthorize Bridge for auto-adding User to the user_role_table from BjyAuthorize. including fix bc break

  Sources   Download

The Development Requires

zf2