Credential identities are more carefully prepared for display now

This commit is contained in:
2016-08-31 16:50:12 +02:00
parent 60f1b4ccfb
commit d9bfcc3e49
3 changed files with 16 additions and 19 deletions

View File

@@ -144,9 +144,10 @@ wstring eap::credentials::get_identity() const
tstring eap::credentials::get_name() const
{
if (empty()) return _T("<empty>");
tstring identity(std::move(get_identity()));
return !identity.empty() ? identity : _T("<blank>");
return
!identity.empty() ? identity :
empty() ? _T("<empty>") : _T("<blank ID>");
}