Closed (fixed)
Project:
CAS
Version:
7.x-1.x-dev
Component:
CAS
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2011 at 00:42 UTC
Updated:
7 Jun 2014 at 20:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
metzlerd commentedI like this.... but perhaps it should be in the watchdog logs instead of in the user message? Do you recall whether we log this message? It would seem that the audience for this is the admin, and not the user trying to log in.
Comment #2
bfroehle commentedYes, of course it should only be in admin related settings. For example, reynierpm (in #1341144: CAS try to create the user more than one time) was trying to edit a user to add the CAS username and was getting the error. It would have then been easy to ask him if the link pointed to a valid user or not (indicating corruption in the {cas_user} table.
The relevant validation functions would be
and
Comment #3
bfroehle commentedCode for 6.x-3.x attached. In addition to providing a better error message I also unify three existing disparate cas_name #element_validate handlers.
Comment #5
bfroehle commentedFixed one little error -- missed a rename (_cas_user_register_cas_name_element_validate -> _cas_name_element_validate) in cas.user.inc. Yay for automated testing!
This should be ready to go.
Comment #7
bfroehle commented#5: 1341708-Add-link-to-user-in-error-fixed.patch queued for re-testing.
Comment #8
bfroehle commentedAnd a 7.x-1.x version... (not manually tested yet).
Comment #9
bfroehle commentedCommitted to 6.x-3.x and 7.x-1.x.