mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Best-practice-clear the password string.
This commit is contained in:
1 parent
6bb97b3d46
commit
3fe0b5a4f9
1 file changed
+1
@@ -246,6 +246,7 @@ void RetroAchievementsSettingsScreen::CreateAccountTab(UI::ViewGroup *viewGroup)
|
||||
loginButton->OnClick.Add([=](UI::EventParams &) -> UI::EventReturn {
|
||||
if (!username_.empty() && !password_.empty()) {
|
||||
Achievements::LoginAsync(username_.c_str(), password_.c_str());
|
||||
memset(&password_[0], 0, password_.size());
|
||||
password_.clear();
|
||||
}
|
||||
return UI::EVENT_DONE;
|
||||
|
||||
Reference in new issue
Block a user