ShareShortcuts

Login System V2.1

This is a simple login system that you can add to any of your shortcuts!

williamf
Создать форк «Login System V2.1»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы williamf получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
44K
Сохранено
1
Действия
40
Категория
API
Версия
2.1
Язык
EN

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.

История версий
2.1 5 фев 2022 г.

+Minor bug fix. +Icon change.

2.0 5 фев 2022 г.

+Enter signup system redone. I fixed the signup system so that you can create an account without opening the data jar app! (You still need the data jar app to be installed on your device for this to work) I also changed the help menu

1.1 5 фев 2022 г.

This is V1 with minor updates. 1 menu renamed + added variables Variables were added so that this shortcut is easier to understand.

1.1 5 фев 2022 г.

$

1.0 4 фев 2022 г.

First release

Что делает

Действий: 40
  1. Text
  2. Show Result
  3. Choose from Menu
    Login system
  4. Choose from Menu
    Signup
  5. Ask for Input
    Create username
  6. Set Variable
    Create username
  7. Check If Value Exists
    dk.simonbs.DataJar
  8. Set Variable
    Does this username already exist
  9. If
  10. Show Alert
    Error
  11. If
  12. Ask for Input
    Create password
  13. Set Variable
    Create password
  14. Generate Hash
  15. Set Value
    dk.simonbs.DataJar
  16. Show Alert
  17. Choose from Menu
    Login
  18. Ask for Input
    Enter username
  19. Set Variable
    Username
  20. Check If Value Exists
    dk.simonbs.DataJar
  21. If
  22. Get Value
    dk.simonbs.DataJar
  23. Set Variable
    Password input by data jar app
  24. Ask for Input
    Enter password
  25. Set Variable
    Password input by user
  26. Generate Hash
  27. If
  28. Show Alert
  29. If
  30. Show Alert
    Error
  31. If
  32. Show Alert
    Error
  33. Choose from Menu
    Help
  34. Choose from Menu
    What do you need help with?
  35. Choose from Menu
    Ading content to your account
  36. Show Alert
  37. Choose from Menu
    Contact info
  38. Show Alert
  39. Choose from Menu
    other
  40. 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

См. все

Вам также может понравиться

См. все
Реклама