Giter VIP home page Giter VIP logo

Comments (7)

capi avatar capi commented on July 28, 2024

I am not entirely sure if I understand what you want, but you already can edit the title of each row by long-pressing the entry and selecting "Rename" from the context menu.

from google-authenticator-android.

wernight avatar wernight commented on July 28, 2024

You can edit the title not the issuer. Issuer is what is above the OTP.

from google-authenticator-android.

capi avatar capi commented on July 28, 2024

Oh sorry, I always added all keys via manual setup and not via QR, so this field seems to be empty and I only see the title.

from google-authenticator-android.

edmorley avatar edmorley commented on July 28, 2024

There are quite a few providers who are not setting their issuer correctly [1], and without this feature there's no way to add it back if without manually manipulating the otpauth:// strings.

Also for manually added keys there's no way to add it in retrospectively.

[1] ie they use:
otpauth://totp/[email protected]?secret=FOO
rather than:
otpauth://totp/ISSUER:[email protected]?secret=FOO&issuer=ISSUER

from google-authenticator-android.

ocdtrekkie avatar ocdtrekkie commented on July 28, 2024

I just experienced this yesterday, WildStar (recently gone free-to-play) supports OTP, but doesn't set their issuer at all.

from google-authenticator-android.

edmorley avatar edmorley commented on July 28, 2024

I guess it either needs an additional context menu item (and the existing one be renamed from "Rename" to "Rename username") like this:

case RENAME_ID:
final Context context = this; // final so listener can see value
final View frame = getLayoutInflater().inflate(R.layout.rename,
(ViewGroup) findViewById(R.id.rename_root));
final EditText nameEdit = (EditText) frame.findViewById(R.id.rename_edittext);
nameEdit.setText(user);
new AlertDialog.Builder(this)
.setTitle(String.format(getString(R.string.rename_message), user))
.setView(frame)
.setPositiveButton(R.string.submit,
this.getRenameClickListener(context, user, nameEdit))
.setNegativeButton(R.string.cancel, null)
.show();
return true;

private DialogInterface.OnClickListener getRenameClickListener(final Context context,
final String user, final EditText nameEdit) {
return new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int whichButton) {
String newName = nameEdit.getText().toString();
if (newName != user) {
if (mAccountDb.nameExists(newName)) {
Toast.makeText(context, R.string.error_exists, Toast.LENGTH_LONG).show();
} else {
saveSecretAndRefreshUserList(newName,
mAccountDb.getSecret(user), user, mAccountDb.getType(user),
mAccountDb.getCounter(user));
}
}
}
};
}

...or else converting the existing rename to a split two input field control.

Though the wiki seems to imply this project is behind the "official" Google authenticator app, so not sure what a PR here would achieve :-(

from google-authenticator-android.

ocdtrekkie avatar ocdtrekkie commented on July 28, 2024

@edmorley The "official" Google app is no longer open source. It's now a proprietary app (and for that reason, I'd personally recommend using it, but whatever). This app is fully functional, but no, changes to this will not make it into the Play Store version. You'd need to compile it yourself.

from google-authenticator-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.