mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
fa93f00372
--HG-- extra : rebase_source : afa367b0bb0002a6cfda4a1531bc7c47a5f0effa extra : source : 705b1be87804d5e3427eb433f6445ef055857a89
29 lines
934 B
Java
29 lines
934 B
Java
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
package org.mozilla.gecko.fxa.login;
|
|
|
|
import org.mozilla.gecko.fxa.login.FxAccountLoginStateMachine.ExecuteDelegate;
|
|
import org.mozilla.gecko.fxa.login.FxAccountLoginTransition.PasswordRequired;
|
|
|
|
public class MigratedFromSync11 extends State {
|
|
public final String password;
|
|
|
|
public MigratedFromSync11(String email, String uid, boolean verified, String password) {
|
|
super(StateLabel.MigratedFromSync11, email, uid, verified);
|
|
// Null password is allowed.
|
|
this.password = password;
|
|
}
|
|
|
|
@Override
|
|
public void execute(final ExecuteDelegate delegate) {
|
|
delegate.handleTransition(new PasswordRequired(), this);
|
|
}
|
|
|
|
@Override
|
|
public Action getNeededAction() {
|
|
return Action.NeedsFinishMigrating;
|
|
}
|
|
}
|