@domcleal Ah, Ok.   I didn't use update_attribute originally because if there's a duplicate login, the exception returned is DB-specific and not predictable like RecordInvalid.  Naked exception catching and all.

I can probably refactor it to look for duplicates first, though, and then use update_attribute.