You can define actions and triggers in Drupal:
Action ( Admin / Settings / Actions ) - Redirect to a specific page
Trigger ( admin / build / trigger / user ) - After a user logs in
Try it.
EDIT (see comments):
Create a small module to check the login process, what role it has, and then redirect if necessary. drupal_goto => redirection function in drupal
hook_user => triggers in user operations
And for user roles:
GLOBAL $user; $roles = $user->roles; $vendor = in_array('vendor', $roles);
$ vendor then contains a true / false value that decides whether to redirect or not.
If you do not know how to do this, just write here and I will write you a module. But it would be good practice to write future drupa modules for you, maybe. :)
Rakward
source share