loki36 / user-otp

OTP Backend for owncloud
34 stars 21 forks source link

Include hostname when generating QR-code #84

Open nshopik opened 10 years ago

nshopik commented 10 years ago

Currently otpauth URL only contain username, sometimes you have different instances with same username. So it impossible to differentiate them unless you manually rename them.

Example:

otpauth://totp/username@HOSTNAME?secret=SECRET&digits=6&period=30

eNBeWe commented 9 years ago

I would prefer using the ISSUER-field for the hostname. In my opinion it makes for nicer accounts (at least in Google Authenticator)

otpauth://totp/username?secret=SECRET&digits=6&period=30&issuer=HOSTNAME