Skip to content

Commit

Permalink
Merge branch 'jb36739' into 'master'
Browse files Browse the repository at this point in the history
[devicelock] Use term security code instead of lock code. Contributes to JB#36739

See merge request !24
  • Loading branch information
jpetrell committed May 31, 2017
2 parents 1fbbe60 + 3b8cb1a commit 584d4eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rpm/nemo-qml-plugin-devicelock.spec
Expand Up @@ -22,7 +22,7 @@ Requires: nemo-devicelock-daemon
%{summary}.

%package -n nemo-devicelock-daemon-cli
Summary: The default command line lock code device lock daemon for Nemo Mobile
Summary: The default command line security code device lock daemon for Nemo Mobile
Group: System/GUI/Other
Requires: %{name} = %{version}-%{release}
Provides: nemo-devicelock-daemon = %{version}-%{release}
Expand Down
14 changes: 7 additions & 7 deletions src/nemo-devicelock/host/hostauthenticator.cpp
Expand Up @@ -231,7 +231,7 @@ void HostAuthenticator::enterSecurityCode(const QString &code)
case Idle:
return;
case Authenticating:
qCDebug(daemon, "Lock code entered for authentication.");
qCDebug(daemon, "Security code entered for authentication.");
switch ((attempts = checkCode(code))) {
case Success:
case SecurityCodeExpired:
Expand All @@ -243,7 +243,7 @@ void HostAuthenticator::enterSecurityCode(const QString &code)
}
break;
case AuthenticatingForChange:
qCDebug(daemon, "Lock code entered for code change authentication.");
qCDebug(daemon, "Security code entered for code change authentication.");
switch ((attempts = checkCode(code))) {
case Success:
case SecurityCodeExpired:
Expand All @@ -257,7 +257,7 @@ void HostAuthenticator::enterSecurityCode(const QString &code)
}
break;
case EnteringNewSecurityCode:
qCDebug(daemon, "New lock code entered.");
qCDebug(daemon, "New security code entered.");
m_newCode = code;
m_state = RepeatingNewSecurityCode;
feedback(AuthenticationInput::RepeatNewSecurityCode, -1);
Expand All @@ -273,7 +273,7 @@ void HostAuthenticator::enterSecurityCode(const QString &code)
}
return;
case RepeatingNewSecurityCode: {
qCDebug(daemon, "New lock code confirmation entered.");
qCDebug(daemon, "New security code confirmation entered.");
if (m_newCode != code) {
qCDebug(daemon, "Lock codes don't match.");
m_newCode.clear();
Expand All @@ -300,7 +300,7 @@ void HostAuthenticator::enterSecurityCode(const QString &code)
return;
}
case AuthenticatingForClear: {
qCDebug(daemon, "Lock code entered for clear authentication.");
qCDebug(daemon, "Security code entered for clear authentication.");
if ((attempts = checkCode(code)) == 0) {
if (clearCode(code)) {
securityCodeCleared();
Expand Down Expand Up @@ -345,7 +345,7 @@ void HostAuthenticator::setCodeFinished(int result)
case Success:
m_currentCode.clear();

qCDebug(daemon, "Lock code changed.");
qCDebug(daemon, "Security code changed.");
securityCodeChanged(authenticateChallengeCode(m_challengeCode));
break;
case SecurityCodeInHistory:
Expand All @@ -367,7 +367,7 @@ void HostAuthenticator::setCodeFinished(int result)
break;
default:
m_currentCode.clear();
qCDebug(daemon, "Lock code change failed.");
qCDebug(daemon, "Security code change failed.");

abortAuthentication(AuthenticationInput::SoftwareError);
break;
Expand Down
4 changes: 2 additions & 2 deletions src/nemo-devicelock/host/hostdevicelock.cpp
Expand Up @@ -266,7 +266,7 @@ void HostDeviceLock::setCodeFinished(int result)
{
switch (result) {
case Success:
qCDebug(daemon, "Lock code changed.");
qCDebug(daemon, "Security code changed.");
m_currentCode.clear();
if (m_state == ChangingSecurityCode || m_state == RepeatingNewSecurityCode) {
unlockFinished(unlockWithCode(m_newCode));
Expand Down Expand Up @@ -294,7 +294,7 @@ void HostDeviceLock::setCodeFinished(int result)
}
return;
default:
qCDebug(daemon, "Lock code change failed.");
qCDebug(daemon, "Security code change failed.");
m_currentCode.clear();
if (m_state == Canceled) {
m_state = Idle;
Expand Down

0 comments on commit 584d4eb

Please sign in to comment.