Mit dem iPhone scannen, um zu installieren
This is a simple login system that you can add to any of your shortcuts! If you post a shortcut that contains my login system, please credit me. You need to download the data jar app before downloading this shortcut for this login system to work.
Neue Funktionen
Version 2.1
+Minor bug fix. +Icon change.
Was er macht
40 Aktionen-
Text
-
Show Result
-
Choose from MenuLogin system
-
Choose from MenuSignup
-
Ask for InputCreate username
-
Set VariableCreate username
-
Check If Value Existsdk.simonbs.DataJar
-
Set VariableDoes this username already exist
-
If
-
Show AlertError
-
If
-
Ask for InputCreate password
-
Set VariableCreate password
-
Generate Hash
-
Set Valuedk.simonbs.DataJar
-
Show Alert
-
Choose from MenuLogin
-
Ask for InputEnter username
-
Set VariableUsername
-
Check If Value Existsdk.simonbs.DataJar
-
If
-
Get Valuedk.simonbs.DataJar
-
Set VariablePassword input by data jar app
-
Ask for InputEnter password
-
Set VariablePassword input by user
-
Generate Hash
-
If
-
Show Alert
-
If
-
Show AlertError
-
If
-
Show AlertError
-
Choose from MenuHelp
-
Choose from MenuWhat do you need help with?
-
Choose from MenuAding content to your account
-
Show Alert
-
Choose from MenuContact info
-
Show Alert
-
Choose from Menuother
-
Show Alert
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color yellow
#define glyph key
show()
menu "Login system" {
item "Signup":
prompt("Create username")
@CreateUsername
rawAction("dk.simonbs.DataJar.CheckIfValueExistsIntent", {
"keyPath": "{@CreateUsername}"
})
@DoesThisUsernameAlreadyExist
if @DoesThisUsernameAlreadyExist == 1 {
alert("Username already exists", "Error")
} else {
prompt("Create password")
@CreatePassword
const Hash = hash(@CreatePassword)
rawAction("dk.simonbs.DataJar.SetValueIntent", {
"keyPath": "{@CreateUsername}",
"valueConversionMode": "text",
"values": "Hash"
})
confirm("Account created")
}
item "Login":
prompt("Enter username")
@Username
rawAction("dk.simonbs.DataJar.CheckIfValueExistsIntent", {
"keyPath": "{@Username}"
})
if ValueExists == 1 {
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "{@Username}"
})
@PasswordInputByDataJarApp
prompt("Enter password", "Text")
@PasswordInputByUser
const Hash1 = hash(@PasswordInputByUser)
if Hash1 == @PasswordInputByDataJarApp {
confirm("Correct password")
} else {
alert("Username doesn't exist", "Error")
}
} else {
alert("Incorrect password", "Error")
}
item "Help":
menu "What do you need help with?" {
item "Ading content to your account":
confirm("This is just a login system that you can put inside of some of your shortcuts. (I may add a way to add content to your account in the future) If you post a shortcut online that contains my login system, please credit me.")
item "Contact info":
confirm("Contact me at [email protected]")
item "other":
confirm("If you have any other things you need help with about this shortcut or if you have any complaints, or any new features, or bugs you would like to tell me about, contact me at [email protected]")
}
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von williamf
Das gefällt dir vielleicht auch
Werbung