# One time Code Example ## One Time Code using HTML. This example demonstrates how to create a One Time Code for unlocking the photo booth, or allowing one time access to other parts of the UI (eg reprinting last photo). It may be useful for permanent installs and payment booths, where you need to issue a one time use code to allow a guest to run another session, or re-print a session. > **Info** > > [Download the Demo HTML](https://www.breezesoftware.com/media/downloads/downloads-62c4ca14a7.txt) Add the Demo Key to your Authenticator app of choice (eg Google Authenticator) `UYJNL7QUOK4H2WJ3SU5EMMAA24Y2D4S3` - Learn how to [Embed the HTML](https://www.breezesoftware.com/help/remote-pro/web-panel) - Learn how to [use AI to make your own](https://www.breezesoftware.com/help/remote-pro/creating-html) --- https://www.youtube.com/watch?v=j6sb5o_rZqk --- ## Details The demo script generates a new one time use code that is valid for 90 seconds from issue. The code can not be re-used. When the code is successfully entered it will display a Take Photo button which will send the "startPhotbooth" command. Upload the demo file to Claude or ChatGPT and have them make any changes you need. For example, you may want to display a "Re Print Last Session" button instead. > **Info** > > Ensure you create a new Unique Key. Do not use the demo key in a live environment. --- ## The Prompt Example prompt used in conjunction with the [Instruction Sheet](https://www.breezesoftware.com/media/downloads/downloads-de29eefcbb.md) to generate this: > I need to unlock Remote Pro using a one-time code generated by an authenticator app (like Google Authenticator). Codes should only be usable once, and only valid for about 120 seconds. Once unlocked, show a "Take Photo" button that fires the booth's "Start photobooth" action (see attached Remote Pro instruction sheet for how that integration works). Style it to match the booth's look — dark glass tiles, rounded, touch-friendly. Needs to run fully offline with no external dependencies. Test that it actually works before giving it to me — right code unlocks, wrong code rejected, and a reused code gets rejected too. [Download the AI Instruction sheet.](https://www.breezesoftware.com/media/downloads/downloads-de29eefcbb.md) ## Video transcript [0:00] Okay, so let's have a look at how to create a one-time code system for remote pro using the embedded HTML feature. Now, this would be particularly useful if you're running a payment booth and you need to issue one-time codes to users that have had an issue with the photo booth. For example, the flash didn't fire or there was an issue with printing and they need to rerun the session. So rather than having to log in to start the session for them, you can issue them a code that they can enter to run a session or to do a reprint or to access any other feature or profile or touchscreen action in Breeze. So in this example, we're going to keep it fairly simple. It's going to generate a single use code from the ready screen that will just present the user with the start photo booth button. Now the way we're generating this one-time use code is using an authenticator app. So, you could use Google Authenticator, or there's plenty of plugins for web browsers. Password managers have these authenticator apps as well, and you're probably already using one for other logins that you use. So, this will allow you to generate a unique secure password that can just be used one time. So, let's have a look at how it works. So, download the demo HTML off our website. So, I'm going to go ahead and just download that to my desktop. And I also need to just take note, we'll come back to it in a second, but we need this unique key here. So, we'll just come into Remote Pro across to the web panel. Make sure that's all enabled as usual. [1:34] And we will go ahead and browse for the file that I've downloaded which is a one-time code. And that is basically going to present the user with a pin pad and they will need to enter the code there. Now, for this demo purpose, I'm going to run it on the ready screen, but of course, you could put this on maybe the standby screen or any other screen that fits into your workflow. Of course, the idea here is that it's configurable to your specific needs. Okay, so let's okay that. And we'll just have a quick look at what that looks like on screen. Okay, so we've got a code that's presented to the user. So you can't start the photo booth unless you know the code. So if we put in one two three four five six we will get an incorrect or expired code error message come up. All right. But now if I open Google Chrome, I've installed an authenticator plugin. Now again you could do this with Google Authenticator on your iPhone or your Android device. It doesn't matter which one you use. It will work with any of them. We want to copy this key here. And I'm going to come into my authenticator app. And I'm going to add a new account. I'll say manual entry. And I'll just call it photo booth. And I'm going to enter in that secret key, the unique ID, and press okay. So now this is going to generate me a new six-digit code, I think it rolls every 30 seconds or something like that. So if I remember that, 371 708, now we need to get that across before it expires. So we'll start a fresh one. 38481. And now it's unlocked it. But if we quickly go back and try and do that again, 38481, because I've already used it, it's not going to let me use it again. Now, you have about 90 seconds from the time that that code is actually generated that you can use it in Breeze. So, it doesn't matter if it expires here. You still have 90 seconds to use that particular code at the Breeze end. Now, of course, you can change all this. So, this is all just how I had it set up for this particular demo. So, what you'd want to do is take this code and put it into Claude or ChatGPT. And the first thing you're going to want to do is have it change this unique key. Otherwise, you and everyone else that uses this demo file will have the same key. So, you need it to generate a new one. So when you add it to your authenticator app, it'll be unique to your photo booth. Then you can have it change things like what the action is. So again, in my example, I'm having it display the start photo booth button, but you might want it to display a reprint button, so you can print off the last session for a user that had problems with their print. You can also change whether or not the codes are reusable, and you can change the amount of time that those codes are valid for. So if you want the code valid for a day, a week, you can do that. And simply you just need to download this file, put it into Claude or ChatGPT, and just explain in plain English your changes and put it back in. So I think this is a really useful tool for allowing you to give guests limited access to the photo booth, and it's designed to be flexible. This is the whole beauty of this HTML embed function that we've added to Remote Pro is that you do not need to wait for us to invent the feature or add the feature into Remote Pro. You can now just go ahead and build it to your exact needs. And you could also actually use this concept to develop a simple payment system as well. So if you need to implement a payment system with an obscure payment company that's supported in your country but not extensively across the world, and we may be unlikely to support it, you could go ahead and implement a system that uses this same sort of concept to unlock the photo booth quite simply using Claude or ChatGPT. Anyway, let us know what you think and if you have any questions, just contact us. --- Source: https://www.breezesoftware.com/help/remote-pro/one-time-code