tips:change_user_name_after_authentication
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
tips:change_user_name_after_authentication [2012-04-19 14:43] – created 81.83.17.184 | tips:change_user_name_after_authentication [2012-04-19 14:45] – 81.83.17.184 | ||
---|---|---|---|
Line 1: | Line 1: | ||
If you implemented a custom authentication backend and want to change the username provide by the user after authentication. Then implement your checkPass function with the $user parameter passed by reference: | If you implemented a custom authentication backend and want to change the username provide by the user after authentication. Then implement your checkPass function with the $user parameter passed by reference: | ||
- | '' | + | |
- | function checkPass(& | + | function checkPass(& |
- | { | + | { |
if(user_authenticated($user, | if(user_authenticated($user, | ||
- | | + | |
- | return true; | + | return true; |
}else{ | }else{ | ||
- | | + | |
} | } | ||
- | } | + | |
- | '' | + |
tips/change_user_name_after_authentication.txt · Last modified: 2012-04-19 14:50 by 81.83.17.184