Отсканируй на iPhone, чтобы установить
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.
Что нового
Версия 2.1
+Minor bug fix. +Icon change.
Что делает
Действий: 40-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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]")
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от williamf
Вам также может понравиться
Реклама